The Esplanade is the thing that actually changes
The Esplanade is the broad parade ground in front of the gatehouse. Every photograph of Edinburgh Castle's frontage is taken from it. It is also the venue for the Royal Edinburgh Military Tattoo, and for that a temporary arena seating about 8,800 people is assembled on it and then taken away again, every single year.
The Institution of Civil Engineers, describing the structure, puts the annual cycle like this: assembly begins in May, events are held in July and August, and dismantling ends in October. The build takes about 40 days and the disassembly about 37, moving more than 800 tonnes of steel across some 6,800 sections with around 1,700 crane lifts. The castle stays open through all of it.
So the castle's forecourt is occupied for roughly half the year, and clear for the other half. If what you want is the fortress rising off its rock with nothing in front of it, that is a November to April photograph. No weather table will tell you this, and for a lot of visitors it settles the month on its own.
Winter, and the only season you can be inside at sunset
From 1 October the castle closes at 5pm. In the depths of winter the sun is down well before that: 15:38 in the middle of December, 16:11 in the middle of January. Between about 25 October and 7 February, roughly 106 days, the sun sets while the castle is still open to visitors, so the lights of the New Town come on below you while you are still on the walls. In summer the castle has been shut for four hours by the time the sun goes down.
Winter is also the darkest part of the year by a long way. December averages 49 hours of sunshine for the whole month, against 195 in May. That takes nothing from the Honours of Scotland, the Great Hall, St Margaret's Chapel or the prisons of war, which are all indoors. It takes a good deal from the walk up the Royal Mile and the views out over the Firth of Forth.
Spring, and the driest weeks of the year
April is the driest month in Edinburgh at 41 mm, and the Esplanade is still clear. May takes slightly more rain at 48 mm and is the sunniest month of the year, 25 hours ahead of July. Both months carry a real risk of cold: April's average daily high is 12.2 °C and May's 14.9 °C, and the wind off the North Sea at the top of Castle Rock takes several degrees off whatever the city is doing.
Summer, the festival, and the fullest version of the city
July is the warmest month at an average high of 19.3 °C and one of the wettest at 72 mm. August is a degree cooler and just as wet. It is also the month Edinburgh becomes a different city. In 2025 the Fringe issued 2,604,404 tickets across 53,942 performances of 3,893 shows at 301 venues, and the Tattoo drew more than 220,000 people to 24 performances on the Esplanade. Every one of those audiences walks past the top of the Royal Mile.
That is either the reason to come or the reason not to. Either way it is a choice and not a warning. What it is not is a weather argument: August gets less sunshine than May and the same rain as July.
Autumn, and the arena coming down
September keeps summer's warmth into the evenings, with an average high of 16.9 °C, and the festivals finish at the end of August. The city does not empty as much as that implies, which the crowd figures further down set out. October is the wettest month of the year at 76 mm and the month the arena finally comes off the Esplanade. The clocks go back at the end of October, and from that weekend the castle's winter hours and the early sunsets arrive together.