---
slug: day-of-year-calculator
title: "Day of the Year Calculator"
category: date
updated: 2026-11-17
canonical: https://calcseed.com/c/date/day-of-year-calculator/
html: /c/date/day-of-year-calculator/
---

# Day of the Year Calculator

Find the day-of-year number for any date, the days remaining, and the percentage of the year elapsed. Free and instant.

## Quick answer

**Quick answer:** with the default inputs (2026-09-13), the day of year is **256**. At these inputs: days remaining = **109**, year elapsed = **70.14**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| Date | 2026-09-13 |  |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Day of year | 256 |  |
| Days remaining | 109 |  |
| Year elapsed | 70.137 |  |

## Formula

```text
day of year = days since 1 January + 1
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Date | date |  | 2026-09-13 |

## Outputs

| Result | Format |
| --- | --- |
| Day of year | primary |
| Days remaining | number |
| Year elapsed | percent |

## How it works

### What the day number tells you

Enter a date and the tool returns its position in the year, how many days remain, and the percentage of the year that has elapsed. At the default of 13 September 2026 the answers are day **256**, **109** days remaining, and **70.14%** of the year gone. The three outputs are one number read three ways, which makes this the fastest way to answer questions like &ldquo;how far into the year are we?&rdquo; without counting months on fingers.

### How the day of the year is found

The day-of-year number counts from 1 January (day 1) to 31 December (day 365, or 366 in a leap year). It is simply the date&rsquo;s position in the calendar, computed by subtracting 1 January from the date in whole days and adding 1, so the count includes the date itself.

### Worked example: 13 September 2026

2026 is a common year, so the month lengths are 31, 28, 31, 30, 31, 30, 31, 31 for January through August. Their sum is 243, meaning 31 August is day 243; add 13 to reach **day 256**. Days remaining are 365 − 256 = **109**, and the elapsed percentage is 256 ÷ 365 × 100 = **70.14%**. In a leap year such as 2028, the same date sits on day 257 — every date after February shifts back one day in the numbering.

### Cumulative days at each month end

Hand calculations run off a running total of month lengths. Memorising the cumulative table below replaces all month-by-month addition — read the row above your month, add the day of the month, and you have the day number in one step.

| End of month | Day number (common) | Day number (leap) |
| --- | --- | --- |
| January | 31 | 31 |
| February | 59 | 60 |
| March | 90 | 91 |
| June | 181 | 182 |
| September | 273 | 274 |
| December | 365 | 366 |

The leap-year column differs only from February onward, by exactly one day. For 13 September 2026, the August row (not shown) is 243, and 243 + 13 = 256, matching the worked example above. For 1 March 2028, read February&rsquo;s leap figure of 60 and add 1 for day 61.

### Milestone days

| Day of year | Date (common year) | Date (leap year) |
| --- | --- | --- |
| 1 | 1 Jan | 1 Jan |
| 100 | 10 Apr | 9 Apr |
| 200 | 19 Jul | 18 Jul |
| 256 | 13 Sep | 12 Sep |
| 300 | 27 Oct | 26 Oct |
| 365 | 31 Dec | 30 Dec |

The table shows the leap-year shift compactly: every row after January moves one day earlier in the calendar when a leap day precedes it. Day 60 is the fork in the road — it is 1 March in a common year but 29 February in a leap year, which is why ordinal-date systems always state the year alongside the day number.

#### Day 256 is Programmer&rsquo;s Day

In computing, the 256th day of the year is celebrated as Programmer&rsquo;s Day, because 256 is the number of values a single unsigned byte can hold (2 to the power 8). The holiday falls on **13 September** in common years and **12 September** in leap years, and it is an official public holiday in Russia. The default date of this calculator sits exactly on it.

### Progress through the year

The percentage output makes mid-year questions exact. Halfway through a common year is day 183 (182.5 rounded up), which lands on 2 July; by day 300 the year is 82.19% gone, and New Year&rsquo;s Eve on day 365 reads 100%. Percentages also expose pacing: if you are 70.14% through 2026 but only 50% through your annual goals, the gap — about 20 percentage points, or 73 days — is the deficit to plan against for the remaining 109 days.

### Where day-of-year numbering is used

- **Ordinal dates.** ISO 8601 writes dates as YYYY-DDD, so 13 September 2026 becomes 2026-256 — the format many log files and military systems use.
- **Science and agriculture.** Growing-degree-day totals, snow records and satellite imagery indices are keyed to day numbers, not month names, because day numbers sort cleanly.
- **Software.** Programmers use day-of-year for %j date formats, year-progress widgets and license expiry windows measured in &ldquo;days into the year&rdquo;.

#### The January 1 edge case

1 January is always day 1 with 364 days remaining in a common year (365 in a leap year), and the elapsed percentage reads 0.27% rather than zero — a reminder that the counter includes the date itself. Any tool that shows 0 for 1 January is counting exclusive of the current day, a different convention that will disagree by one on every other date too.

### Common mistakes

- **Counting from 0 instead of 1.** 1 January is day 1, not day 0; every downstream number shifts if you start at zero.
- **Using 365 in a leap year.** Dates from 1 March onward sit one day later in leap years, and 31 December is day 366.
- **Confusing days remaining with days left inclusive.** Days remaining here excludes the current date: on day 256, 109 days follow it, and adding the current day gives 110 dates touched.

A quick sanity check catches most of these errors: the three outputs must always satisfy dayN + daysRemaining = total (256 + 109 = 365 for the defaults), and the percentage must equal dayN divided by the same total. If the three numbers stop reconciling, one of them was computed against the wrong year length.

## FAQ

### How do I calculate the day of the year for a date?

Add up the month lengths before it and add the day of the month. For 13 September 2026: 243 days through August plus 13 = day 256.

### What day of the year is 13 September 2026?

Day 256 of 365, with 109 days remaining and 70.14% of the year elapsed.

### What is the 256th day of the year?

13 September in a common year and 12 September in a leap year, celebrated as Programmer&rsquo;s Day because 256 is 2 to the power 8.

### How many days are left in the year?

Subtract the day number from 365 (or 366 in a leap year). From day 256 of 2026, 109 days remain; from day 100, 265 remain.

### Which day marks the halfway point of the year?

Day 183, which falls on 2 July in a common year. The exact midpoint 182.5 falls between 1 July and 2 July.

### Why do dates shift by one day after February in leap years?

Because 29 February inserts a day before them. 1 March is day 60 in a common year and day 61 in a leap year; day 60 belongs to 29 February in the leap case.

### What is an ordinal date?

An ISO 8601 format written as year plus day number, such as 2026-256 for 13 September 2026. It avoids month-name parsing in software and sorts naturally.

### How do I find the day number of 1 January?

It is always day 1, in both common and leap years, since counting starts there. The two numbering schemes only diverge from 1 March onward.

## Method and sources

Methodology: Calendar logic follows the proleptic Gregorian calendar (ISO 8601) with correct leap-year handling.

Last updated: 2026-11-17.
- Ordinal date (day-of-year) numbering in the Gregorian calendar.
