Is Venus hotter than Mercury?
The short answer
Mercury is the closest planet to the Sun and gets far more sunlight. So which one is actually the hottest? We check the temperatures and the physics behind them.

True. Venus is the hottest planet in the solar system, even though Mercury is much closer to the Sun. NASA puts the surface of Venus at about 467 °C (872 °F), hot enough to melt lead, while Mercury's day side peaks at about 430 °C (800 °F) and its night side drops to about −180 °C (−290 °F). On Venus, an ordinary afternoon is hotter than the hottest moment on Mercury.
The difference comes down to air. Mercury has almost none, so its heat leaks away to space. Venus has a crushingly thick atmosphere of carbon dioxide that holds its heat in.
Why it feels like it should be false
The claim sounds wrong for a good reason. Stand closer to a fire and you get hotter, and the same rule works for sunlight. Mercury orbits the Sun at an average of about 58 million km (36 million miles), according to NASA. Venus sits at about 108 million km (67 million miles), almost twice as far out.
Sunlight thins out with the square of distance, so the gap in sunshine is bigger than the gap in distance. Run those two averages through the inverse-square rule and each square metre of Mercury gets roughly three and a half times as much sunlight as the same patch at Venus's distance. Mercury's orbit is also stretched, swinging between about 47 and 70 million km from the Sun, so at its closest the sunshine is fiercer still.
If sunlight were the whole story, Mercury would win easily. It isn't, and NASA says so plainly on its Mercury fact page: despite being closest to the Sun, Mercury is not the hottest planet; that title belongs to Venus, "thanks to its dense atmosphere."

Mercury: scorching days, frozen nights
Mercury has no atmosphere worth the name. What it does have is a thin exosphere, a scattering of atoms knocked off its surface by the solar wind and by meteoroid impacts. That is far too sparse to hold heat or carry it around the planet.
So the rock simply heats up while the Sun is overhead and radiates that heat back into space as soon as it isn't. Mercury also turns slowly. One full day-night cycle there lasts 176 Earth days, which gives the night side months to cool. The result is one of the widest temperature swings in the solar system: about 430 °C at midday and about −180 °C in the dark.
The cold is real enough that NASA reports Mercury may hold water ice at its poles, inside deep craters whose floors never see sunlight. The planet closest to the Sun may have frost in its shadows. Our own Moon, another airless world (and one that is slowly edging away from Earth), swings between baking days and freezing nights for the same reason.
Venus: a thick blanket with no off switch
Venus is the opposite case. Its atmosphere is mostly carbon dioxide and so dense that the pressure at the surface is about 93 times sea level on Earth. NASA compares it to being more than 900 metres (3,000 feet) under water.
Two things happen to sunlight there.
First, a lot of it never arrives. Venus is wrapped in thick clouds of sulfuric acid droplets, and those bright clouds reflect most of the sunlight that hits them. That is why Venus shines so brightly in our sky: NASA notes it is the brightest object in the night sky after the Moon. Mercury's dark, rocky surface absorbs far more of the light that reaches it.
Second, whatever energy does reach the ground is trapped. The surface warms and gives off heat as infrared radiation. On Mercury that infrared escapes straight to space. On Venus, the thick carbon dioxide absorbs it and sends much of it back down. This is the greenhouse effect, the same physics that keeps Earth warmer than it would otherwise be, run to an extreme. NASA calls what happens on Venus a runaway greenhouse effect.

So Venus loses on sunshine and wins on insulation, and insulation turns out to matter more. Because the atmosphere is so massive, it also spreads heat around the whole planet. The night side of Venus stays about as hot as the day side, even though a single Venus day is extraordinarily long (longer, by one measure, than its year). There is no cool evening and no cool pole to escape to.
Why landing there is so hard
The heat and pressure together make the surface of Venus one of the harshest places spacecraft have ever been sent. The Soviet Union's Venera programme sent a series of probes to Venus between 1961 and 1984, and the landers among them had to work fast, before the conditions overwhelmed their electronics. Mercury, for all its fierce daytime sun, is easier to study from orbit: NASA's MESSENGER spacecraft mapped it in detail, and much of the evidence for that polar ice comes from its data.
Was Venus always like this?
Probably not. NASA describes Venus as a planet that may once have had oceans in its younger days, before the greenhouse effect ran away and the water was lost. How much water there was, and for how long, is still debated. What is settled is the present: Venus today is hotter than any other planet, Mercury included.
Sources: NASA Science, Venus facts; NASA Science, Mercury facts.