Back to Blog

How to Add or Subtract Days from a Date

Adding days to a date is one of the most common date-arithmetic problems — project deadlines, lease expirations, subscription renewals, pregnancy due dates, visa windows, and trial-period countdowns all rely on it. This guide walks through the mechanics, including month-length variability and the leap-year rule every four years (with century exceptions).

Calculator unavailable: the slug "date-add-subtract-calculator" is not registered for inline use. Please contact editorial.

Adding Days to a Date

The simplest case: add a number of days to a given date. If the result crosses into the next month, you need to account for the number of days in each month.

New Date = Start Date + Number of Days

Example: March 15 + 20 days = April 4 (March has 31 days, so 16 days remain in March, then 4 more = April 4).

For ISO 8601 dates (the international standard format YYYY-MM-DD used in databases, APIs, and contracts), the operation is unambiguous: add 1 day to 2026-03-15 and you get 2026-03-16; add 16 days and you get 2026-03-31; add 17 days and the month rolls over to 2026-04-01.

Adding Weeks, Months, or Years

Some units multiply cleanly; others vary with the calendar:

UnitConversionWorked Example
DaysDirect addition2026-03-15 + 17 = 2026-04-01
WeeksMultiply by 76 weeks = 42 days
MonthsVaries (28–31 days)Jan 31 + 1 month = Feb 28 (non-leap)
Years365 / 366 (leap)Feb 29 2024 + 1 yr = Feb 28 2025

For years, the convention is same-month-same-day: +1 year to March 15 is March 15 of the next year. The Feb 29 → Feb 28 collapse is the standard library behavior (Rust chrono, Python dateutil, JavaScript's date-fns) — adding 1 year to a leap-day gives the last day of February in non-leap years.

Leap Year Considerations

February has 28 days in a common year and 29 in a leap year. The rule is the Gregorian calendar standard:

  • A year divisible by 4 is a leap year (e.g., 2024, 2028, 2032)
  • Except: a year divisible by 100 is not a leap year (1900 was not)
  • Except: a year divisible by 400 is a leap year (2000 was)

This means 2024, 2028, 2032, 2036 are leap years. The next century exception is 2100 (not a leap year), then 2200 and 2300.

Worked example: adding 60 days to January 15, 2024 (a leap year). January has 16 days left → February has 29 days (2024 is leap) → 60 − 16 − 29 = 15 more days into March = March 15, 2024. The same calculation in 2023 (non-leap): 60 − 16 − 28 = 16 more into March = March 16, 2023.

Subtracting Days from a Date

Subtraction works identically but in reverse. To find what date was 45 days before April 20:

April 20 − 20 days = March 31

March 31 − 25 more days = March 6

Result: March 6

Business Days and Holiday Handling

Most legal deadlines (contracts, tax filings, court motions) count business days rather than calendar days, so weekends and U.S. federal holidays are excluded. For instance, filing a 30-day appeal from a judgment dated on a Friday usually means 30 business days — skipping weekends and federal holidays — not 30 calendar days.

U.S. federal holidays observed by the federal government (and many courts) are: New Year's Day (Jan 1), MLK Day (3rd Monday in January), Presidents' Day, Memorial Day, Juneteenth (June 19), Independence Day, Labor Day, Columbus Day, Veterans Day, Thanksgiving, and Christmas. The Federal Reserve and IRS follow this list; state courts and private contracts may differ.

Common Use Cases

  • Project deadlines: Adding N business days to a start date for delivery / response commitments.
  • Pregnancy due dates: Adding 280 days (40 weeks) to the last menstrual period (LMP). Naegele's rule assumes a 28-day cycle; longer or shorter cycles shift the EDD.
  • Visa windows: Adding 90 or 180 days to entry date for tourist visas / ESTA / Schengen stay limits.
  • Subscription renewals: Adding 30 days to billing date; calendar arithmetic matters for monthly vs. 30-day cycles.
  • Statute of limitations: Legal claims have filing deadlines — usually in years or business days, with discovery rules in some jurisdictions.
  • Countdown events: Finding the date X days before a wedding, exam, or contract renewal.

A Note on ISO Week Numbers

For project planning, ISO 8601 week numbers (YYYY-Www-D, e.g., 2026-W42-3 = Wednesday of week 42 of 2026) are often more useful than raw dates — they survive year boundaries (week 1 always contains January 4). Excel and most scheduling tools support ISO weeks; legacy American systems sometimes don't.

Key Takeaways

  • Always account for different month lengths (28, 29, 30, or 31 days).
  • Check for leap years when February is involved — and remember the 100/400 exception for centuries.
  • For business days, exclude weekends and U.S. federal holidays.
  • Use our Date Add/Subtract Calculator for instant, accurate results including business-day mode.
  • For project planning, consider ISO week numbers (Www-D) to avoid year-boundary confusion.

About this guide

Methodology: Gregorian calendar arithmetic per ISO 8601 (ISO 8601:2019, Date and time — Representations for information interchange). Leap-year rule per the Pope Gregory XIII 1582 reform, codified in inter gravissimas. Reviewed by the Maya Chen (Chartered Financial Analyst) on October 9, 2026.

Editorial standards

Every CalcCentral calculator is authored by a credentialed subject-matter expert and independently reviewed before publication. Our editorial policy follows the same E-E-A-T guidelines used by Google to evaluate YMYL (your-money-or-your-life) pages.

Author

Maya Chen, CFA

Chartered Financial Analyst

Independently reviewed

Maya Chen, CFA

Chartered Financial Analyst

Last reviewed: August 12, 2026 · Next scheduled review: quarterly

Sources & Authorities

  • ISO 8601:2019 — Date and time — Representations for information interchange iso.org
  • NIST — Date and Time Calendar Conventions (Gregorian leap-year rule) nist.gov
  • U.S. Office of Personnel Management — Federal Holidays opm.gov
  • Pope Gregory XIII — Inter gravissimas (1582) calendar reform britannica.com

FAQ

Frequently asked questions

Everything you need to know about this calculator. Can't find what you're looking for? Email our team.

Simply add the number of days to the date. If the result exceeds the days in the current month, it rolls over to the next month. For example, adding 10 days to March 25 gives April 4.

Sponsored

How to Add Days to a Date: Jan 1 + 90 = Apr 1 (2026 ISO 8601)