Vitamin D

The sun, month by month

Sunrise and sunset in Madrid in July

On July 1 in Madrid the sun rises at 06:48 and sets at 21:49; on day 31 it rises at 07:11 and sets at 21:31. Over the month the day gets 41 minutes shorter.

In Madrid (40.4° latitude), July 2026 has 31 days whose sun rises at 06:48 and sets at 21:49 on the 1st, and at 07:11 and 21:31 on the 31th. Mid-month the day lasts 14 h 47 min and the sun reaches 71° above the horizon. Vitamin D synthesis is possible between 11:00 and 19:00, which is when the UV index reaches at least 3: at the best moment of the day about 6 minutes are enough for a mid-range skin phototype with a quarter of the body exposed to make around 1000 IU.

Sunrise06:57
Sunset21:44
Golden hour21:04–21:44
Day length14 h 47 min

Where does the sun rise and set in Madrid in July?

Where it risesNortheast60°
Where it setsNorthwest300°

Mid-July in Madrid: the sun rises in the northeast — a bearing of 60°, measured from true north — and sets in the northwest, at 300°. That is 30° north of due east at sunrise, and the same 30° north of due west at sunset. From the 1st to the last day of the month both points shift 7° south.

Approximate bearings: they can be a couple of degrees out. They are measured from true north, not the north a phone compass points to.

Day by day

All times are local to Madrid. Dawn and dusk mark civil twilight.

DayDawnSunriseSunsetDuskDay length
106:1506:4821:4922:2215 h 01 min
206:1506:4821:4922:2115 h 00 min
306:1606:4921:4822:2114 h 59 min
406:1706:4921:4822:2114 h 59 min
506:1706:5021:4822:2114 h 58 min
606:1806:5121:4822:2014 h 57 min
706:1906:5121:4722:2014 h 56 min
806:1906:5221:4722:2014 h 55 min
906:2006:5321:4722:1914 h 54 min
1006:2106:5321:4622:1914 h 53 min
1106:2106:5421:4622:1814 h 52 min
1206:2206:5521:4522:1814 h 51 min
1306:2306:5521:4522:1714 h 50 min
1406:2406:5621:4422:1714 h 48 min
1506:2506:5721:4422:1614 h 47 min
1606:2606:5821:4322:1514 h 46 min
1706:2706:5921:4322:1514 h 44 min
1806:2706:5921:4222:1414 h 43 min
1906:2807:0021:4122:1314 h 41 min
2006:2907:0121:4122:1214 h 39 min
2106:3007:0221:4022:1114 h 38 min
2206:3107:0321:3922:1114 h 36 min
2306:3207:0421:3822:1014 h 35 min
2406:3307:0521:3722:0914 h 33 min
2506:3407:0521:3622:0814 h 31 min
2606:3507:0621:3622:0714 h 29 min
2706:3607:0721:3522:0614 h 27 min
2806:3707:0821:3422:0514 h 25 min
2906:3807:0921:3322:0314 h 23 min
3006:3907:1021:3222:0214 h 21 min
3106:4107:1121:3122:0114 h 19 min

Approximate astronomical values: they can shift a minute or two from year to year.

What about vitamin D in July?

In July, the typical synthesis window in Madrid runs from 11:00 to 19:00: with medium skin and a t-shirt, ~6 min at the best moment is enough.

See the Madrid vitamin D guide

Common questions about the sun in Madrid in July

Where does the sun set in Madrid in July?
Mid-July in Madrid: the sun sets in the northwest, a bearing of 300° measured from true north, which is 30° north of due west. It rises in the northeast, at 60°. Over the month both points shift 7° south.
How much daylight does Madrid lose in July?
Over July the day gets 41 minutes shorter in Madrid: on July 1 the sun rises at 06:48 and sets at 21:49, and on day 31 it rises at 07:11 and sets at 21:31.
How many hours of daylight does Madrid get in July?
In mid-July the day lasts 14 h 47 min in Madrid, from sunrise at 06:57 to sunset at 21:44. The table has the day length for each of the 31 days of the month.
What time does it start to get light in Madrid in July?
In mid-July the sky starts to get light at 06:25 in Madrid, when the sun is 6° below the horizon, and the sun itself does not rise until 06:57. The “Dawn” column of the table gives that time for every day of the month.
What time does it get dark in Madrid in July?
It's not the same time as sunset. In mid-July in Madrid the sun sets at 21:44, but there is still light: civil twilight does not end until 22:16, when the sun reaches 6° below the horizon and usable outdoor light runs out. The “Dusk” column of the table gives that time day by day.
What time of day can you make vitamin D in Madrid in July?
In mid-July, between 11:00 and 19:00: that is the stretch of the day when the UV index reaches 3 in Madrid, the minimum for the skin to make vitamin D. At the best moment of the day about 6 minutes are enough for a mid-range skin phototype with a quarter of the body exposed to make around 1000 IU.