Skip to main content
📆 Calendar

Day of the Year Calculator

Enter any date to get its day number from 1 to 366, the days remaining in the year, the weekday, and how much of the year has gone by.

Day number 1–366
Days remaining
Weekday
% of year elapsed
100% Free
📅 Open All Date & Time Calculators 📖 Read the Guide

Day of year — Quick answer

Add the lengths of all earlier months, then add the day of the month.

day_of_year = days in prior months + day of month

Worked example: July 4, 2024 → 31+29+31+30+31+30 = 182, +4 = day 186 of 366.

Examples

DateDay #Remaining
Mar 1, 202461305
Jul 4, 2024186180
Dec 31, 20243660

Day 366 only occurs in leap years; common years end at 365.

📆 Day of the Year Calculator

Pick a date.

Day of the year
Days remaining
Day of week
Year elapsed

ℹ️ Day 1 = January 1. Day numbers run to 365 (common year) or 366 (leap year).

The day of the year is a date's ordinal position within its year — January 1 is day 1, and December 31 is day 365 in a common year or day 366 in a leap year. This calculator returns the day number, the days remaining, the weekday, and the percent of the year elapsed for any date you enter.

Reviewed: June 20, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: Gregorian calendar, recomputed in code.

How it's counted

Day of year
(sum of lengths of all earlier months) + (day of the current month)

Because February has 29 days in a leap year, the same calendar date can have a different day number depending on the year. From March onward, every date in a leap year sits one day later than in a common year. The total days in the year — 365 or 366 — sets the maximum, and the days remaining is simply that total minus the day number.

Worked examples

July 4, 2024 (leap year):

Independence Day
Jan 31 + Feb 29 + Mar 31 + Apr 30 + May 31 + Jun 30 = 182 · +4 = day 186

March 1 — leap vs common:

The leap shift
2024: 31 + 29 + 1 = day 61 · 2023: 31 + 28 + 1 = day 60

December 31:

Last day
day 366 (leap) or day 365 (common), 0 days remaining

So on July 4, 2024, 180 days remain in the year and roughly 50.8% has elapsed. The weekday for that date is Thursday — the calculator reports all of these at once.

Frequently Asked Questions

What is the day of the year?

The ordinal position of a date in its year. Jan 1 = day 1; Dec 31 = day 365 or 366. Mar 1, 2024 = day 61.

How do I calculate it by hand?

Add the lengths of all earlier months, then add the day. Jul 4 leap year: 182 + 4 = 186.

How many days are in a year?

365 common, 366 leap. Day 366 appears only in leap years (÷4, century years ÷400).

Is it the same as the Julian day?

No. Astronomical Julian Day counts from 4713 BC. Day of year (1–366) is within one year.

How many days are left in the year?

Total days minus the day number. Day 186 of 366 → 180 remaining.

Need more time tools?

Explore leap year, week number, age, date difference and more across the AI Calculator date & time suite.

📅 Open Date & Time Calculators — Free

No registration required · 350+ calculators · PDF report export