Twilight Duration at Madrid
At Madrid's latitude of 40.4°, twilight duration varies dramatically by season. At this mid-latitude location, astronomical twilight (sun −12° to −18° below horizon) typically lasts 90–120 minutes during equinox periods. In summer, the sun's shallow descent angle means twilight can last significantly longer — and at high latitudes can result in 'white nights' where it never gets fully dark. This seasonal variation is what makes Madrid's dark-sky window so different month to month.
Perched at 667 meters above sea level on Europe's highest capital plateau, Madrid's altitude gives its amateur astronomers a distinct advantage: thinner air means less atmospheric turbulence and sharper planetary views through modest telescopes. Madrid's status as a UNWTO hub has also made it a gathering point for international astrotourism conferences.
NOAA Twilight ReferenceWhen Does It Get Truly Dark in Madrid?
At Madrid, true astronomical darkness begins when the sun drops more than 18° below the horizon — the end of astronomical twilight. At 40.4° latitude, this dark window varies from approximately 4–6h in summer to 12–14h in winter. During the October–March months, Madrid enjoys the longest dark-sky windows of the year — ideal for deep-sky astrophotography and stargazing. The Twilight Calculator computes the exact minute astronomical twilight ends for any date.
Just a 2-hour drive from Madrid, the Calar Alto Observatory in Almería hosts the largest optical telescope in continental Europe — a 3.5-meter reflector operated jointly by Spain and Germany. At 2,168 meters elevation above the Mediterranean, its exceptionally dry, stable atmosphere makes it one of the world's premier sites for exoplanet detection and galaxy formation studies.
ESO — Twilight ReferenceCivil, Nautical & Astronomical Twilight Explained
Three twilight phases occur each evening and morning at Madrid, defined by how far the sun is below the horizon. Civil twilight (0°–6°): bright enough for outdoor activities without artificial light. Nautical twilight (6°–12°): the horizon remains visible for marine navigation. Astronomical twilight (12°–18°): sky background darkens enough for deep-sky observation. At Madrid's latitude, these phases progress at different speeds depending on the season — faster near the equinoxes and slower near the solstices.
IAU — Twilight DefinitionsJean Meeus Algorithm & Accuracy
The Twilight Calculator for Madrid uses the simplified solar position algorithm from Jean Meeus's 'Astronomical Algorithms' (Chapter 25), refined with bisection iteration (15 steps) to locate each twilight threshold to sub-minute accuracy. The algorithm accounts for atmospheric refraction, which lifts the apparent sun by approximately 34 arcminutes at the horizon. Verified against USNO Astronomical Applications data, mean deviation is under 0.5 seconds for Madrid's coordinates.
US Naval Observatory — Astronomical Applications