Twilight times in Madrid

Madrid Civil, Nautical & Astronomical Twilight · FastTool

How Twilight Works at Madrid's Latitude

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 Reference

When 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 Reference

Civil, 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 Definitions

Jean 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

19:05

Fully Dark

04:54

Astro Dawn

9h 49m

Dark Window

18:02

Civil Dusk

Frequently Asked Questions About Twilight in Madrid

When does it get dark in Madrid tonight?
Tonight's darkness times for Madrid depend on the date and Madrid's latitude (40.4°). Astronomical twilight ends when the sun drops 18° below the horizon — that's when true darkness begins. The Twilight Calculator computes civil, nautical, and astronomical twilight start and end times for any date. Enter Madrid as your location above and press Calculate to see the exact times for tonight.
How long does astronomical twilight last in Madrid?
Astronomical twilight duration at Madrid varies by season. At 40.4° latitude (mid-latitude), it typically lasts 90–120 minutes during equinox periods. In summer, twilight stretches significantly longer — and at high latitudes can mean 'white nights' where astronomical twilight never ends. In winter, the steeper sun angle produces shorter twilight. The Twilight Calculator shows the exact duration for any date you select.
What is the best time for stargazing in Madrid?
The best stargazing in Madrid occurs when two conditions align: astronomical twilight has ended (sun > 18° below horizon) and the moon is near new moon or below the horizon. At 40.4° latitude, the longest dark-sky windows occur during the October–March months. Use the Twilight Calculator to find tonight's dark window, then cross-reference with MoonSync to check the moon phase — this gives you the 'astrophotographer's golden hours' for Madrid.
Does Madrid experience white nights?
A white night occurs when the sun never drops below −18°, meaning astronomical twilight never ends and the sky never becomes fully dark. At Madrid's latitude of 40.4°, 40.4168° is below the white night threshold — the sun always drops below −18° and true darkness occurs every night. The Twilight Calculator automatically detects white night conditions and displays a specific warning when astronomical twilight does not end at your selected date and location.

30-Day Observation Planner

DateSunriseSunsetTwilight EndMoon Illum.Dark Window
Oct 15Today06:2517:3819:0519%9h 49m
Oct 1606:2617:3719:0427%9h 52m
Oct 1706:2717:3519:0235%9h 54m
Oct 1806:2817:3419:0144%9h 57m
Oct 1906:2917:3218:5954%9h 59m
Oct 2006:3017:3118:5863%10h 2m
Oct 2106:3117:2918:5772%10h 4m
Oct 2206:3217:2818:5581%10h 6m
Oct 2306:3417:2618:5488%10h 9m
Oct 2406:3517:2518:5394%10h 11m
Oct 2506:3617:2418:5298%10h 13m
Oct 2606:3717:2218:50100%10h 15m
Oct 2706:3817:2118:4999%10h 18m
Oct 2806:3917:2018:4896%10h 20m
Oct 2906:4017:1818:4790%10h 22m
Oct 3006:4117:1718:4682%10h 24m
Oct 3106:4317:1618:4572%10h 26m
Nov 106:4417:1518:4361%10h 28m
Nov 206:4517:1318:4249%10h 30m
Nov 306:4617:1218:4138%10h 32m
Nov 406:4717:1118:4027%10h 34m
Nov 506:4817:1018:3918%10h 36m
Nov 606:5017:0918:3910%10h 38m
Nov 706:5117:0818:385%10h 40m
Nov 806:5217:0718:372%10h 42m
Nov 906:5317:0618:360%10h 44m
Nov 1006:5417:0518:351%10h 46m
Nov 1106:5617:0418:343%10h 48m
Nov 1206:5717:0318:347%10h 49m
Nov 1306:5817:0218:3313%10h 51m

Madrid Civil, Nautical & Astronomical Twilight · FastTool — Best Stargazing — Madrid

Civil, nautical & astronomical twilight times for Madrid — when the sky gets truly dark for stargazing & astrophotography. Free & private. · Madrid civil, nautical & astronomical twilight times — calculated entirely in your browser. Zero network requests, zero location data transmitted. Ephemeris: JPL DE440 (Valid 1900–2050) · Methodology v2.1.0 · Verified against USNO Astronomical Applications data.

All tools on fastool.io run entirely in your browser — zero data leaves your device. No personal data is collected, stored, or transmitted to any server. Solar calculations use SunCalc.js; lunar data uses JPL DE440 ephemeris; coordinate transforms use publicly documented EPSG/OGC standards. This site requires no signup, no account, and no cloud processing.