Short answer: To see today's number, open the free day of the year calculator. It reads the date on your device and shows the day number, the days left in the year and whether it is a leap year. By hand, add up the days in the months before yours, add the day of the month, and add 1 more if it is a leap year and your date is after 28 February. For example, 13 November 2026 is day 317.
This post does not hard-code today's number, because it would be wrong tomorrow. It gives you the method and two tables that never go stale. The free tools are made by the maker of MotionShine, and what I say about them comes from their own pages.
What day of the year is it today?
Open the day of the year calculator. The page opens on today's date, as your device sees it, and moves on at midnight while it stays open. Its page says the date comes from your device, so a wrong time zone on the device gives a wrong day.
If you only need today's date and not the number, the today's date page shows it. To count the days from one date to another, use days between dates.
What day of the year is it out of 365?
The count runs from 1 to 365 in a normal year, and from 1 to 366 in a leap year. 1 January is always day 1. 31 December is day 365 in a common year, such as 2026, and day 366 in a leap year, such as 2028.
So "out of 365" is right for most years, but in a leap year the answer is out of 366. The leap rule is below.
What number day of the year is it?
Take the days in all the months before your month, then add the day of the month. In a leap year, add 1 more if the date is after 28 February.
The days in each month are 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31. Worked example, 13 November 2026:
- The ten months before November have 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 = 304 days.
- Add the day of the month: 304 + 13 = 317.
- 2026 is not a leap year, so there is nothing more to add. 13 November 2026 is day 317.
The same date in 2028, a leap year, is day 318, because 29 February 2028 comes before it. I checked both with a short Python script, shown in the checks section.
First day number of each month
This table is computed, not copied. The first day number of a month is the last day number of the month before, plus 1.
| Month | First day, common year (such as 2026) | First day, leap year (such as 2028) |
|---|---|---|
| January | 1 | 1 |
| February | 32 | 32 |
| March | 60 | 61 |
| April | 91 | 92 |
| May | 121 | 122 |
| June | 152 | 153 |
| July | 182 | 183 |
| August | 213 | 214 |
| September | 244 | 245 |
| October | 274 | 275 |
| November | 305 | 306 |
| December | 335 | 336 |
Use it like this: for 18 October 2026, take October's first number, 274, and add 18 minus 1. That gives 274 + 17 = 291. The calculator's page gives the same answer, 291, with 74 days left in the year.
The last day of each month is the next row's first number minus 1. In a common year, 31 December is day 365. In a leap year, it is day 366.
What day number of the year is it in a leap year?
The one change is that every date from 1 March onward is one number higher than in a common year. 1 March is day 60 in 2026 and day 61 in 2028, as the table shows.
The Gregorian rule, as stated in a 2016 working draft of ISO 8601-1 kept on the Library of Congress site (read on 13 November 2026), is that a leap year is a year divisible by four, but a century year is a leap year only if it is also divisible by four hundred. So 2024, 2028 and 2000 are leap years. 1900 and 2100 are not. I ran the check for all of these in Python.
How many days into the year are we?
Today's day number minus 1 is the number of full days that have passed before today. If today is day 317, then 316 full days are behind you and today is the 317th day.
For the days left, subtract the day number from the length of the year: 365 - 317 = 48 days left after 13 November 2026, or 366 minus the number in a leap year. The calculator shows the days left on the same card.
What is the 340th day of the year?
Work backwards. Find the largest month-end below 340, and subtract it.
- In 2026, a common year: November ends on day 334. 340 - 334 = 6, so day 340 is 6 December 2026.
- In 2028, a leap year: November ends on day 335. 340 - 335 = 5, so day 340 is 5 December 2028.
The same number lands on a different date in a leap year, one day earlier after February. The calculator does the reverse for you: type a year and a day number under "Day number to date". Its page gives day 100 of 2026 as 10 April 2026, and I got the same answer in Python.
Do it in a spreadsheet or in code
- Google Sheets or Excel: if the date is in cell A3,
=A3-DATE(YEAR(A3),1,0)gives its day number. The same formula withTODAY()in place of A3 gives today's. This is from the Inch Calculator page on the topic, read on 13 November 2026, and it works because day 0 of January is the last day of the year before. - Python:
datetime.date.today().timetuple().tm_yday. - Mac or Linux terminal:
date +%jprints the day of the year with leading zeros, such as 007. Epoch Converter's page lists this one, read on 13 November 2026.
What the number is used for
- Ordinal dates. ISO 8601 writes a date as the year and the day number, such as 2026-317.
- Julian dates. In some industries, "Julian date" means the year and day number, like 26317. In astronomy it means a continuous day count, which is a different thing. The Julian date converter handles both.
- Week numbers. The ISO week starts on Monday and week 1 holds the first Thursday. Ask what week is it for yours, and note that a Sunday-start calendar can give another number.
Check the numbers
These are the Python lines I ran to make the table and the examples. They use only the standard library.
import datetime, calendar[datetime.date(y, m, 1).timetuple().tm_yday for m in range(1, 13)]foryin 2026 and 2028datetime.date(2026, 11, 13).timetuple().tm_ydayand the same with 2028datetime.date(2026, 1, 1) + datetime.timedelta(days=339)and the same with 2028[calendar.isleap(y) for y in (1900, 2000, 2024, 2026, 2028, 2100)]
The output was [1, 32, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335] for 2026 and [1, 32, 61, 92, 122, 153, 183, 214, 245, 275, 306, 336] for 2028, then 317, 318, the two dates above, and [False, True, True, False, True, False].
FAQ
What day of the year is it today?
Open the day of the year calculator, which shows today's number from your device's date. A page that prints a fixed number is right only on the day it was written.
How many days are in a year?
365 in a common year and 366 in a leap year. A leap year has a 29 February, so every date after it moves up one number.
Is 2028 a leap year?
Yes. 2028 is divisible by four and is not a century year. 2100 is not a leap year, because it is a century year that is not divisible by 400.
What is the day number of 31 December?
365 in a common year and 366 in a leap year. In 2026 it is 365, and in 2028 it is 366.
Is the day of the year the same as a Julian date?
Sometimes. In some systems a Julian date is the year and day number, such as 26317. In astronomy it is a continuous count of days, which is a different number.
Why does my calendar app show another week number?
Many US calendars start the week on Sunday. The ISO week starts on Monday and puts week 1 around the first Thursday, so the two can differ. The day of the year is not affected.


