How to Add or Subtract Days From a Date (Step by Step)
To add or subtract days from a date, pick your start date, choose Add or Subtract, then type the number of days, weeks, months or years to shift by — the resulting date and its weekday appear instantly. No counting on a calendar and no formulas required. This guide walks through the whole process step by step and explains what happens behind the scenes.
The Add or Subtract Days Calculator is built for exactly this kind of everyday date math: figuring out a deadline, a warranty expiry, a "90 days from now" reminder, or how far back a past event was. Because it runs entirely in your browser, the dates you enter never leave your device.
Step-by-step: shifting a date forward or backward
- Set your start date. Type it into the date field, or click Today to drop in the current date with a single tap.
- Choose the direction. Select Add to move into the future or Subtract to move into the past.
- Enter the amount to shift by. Fill in any combination of days, weeks, months and years. You can leave fields you do not need at zero.
- Read the result. The calculator immediately shows the resulting date together with the exact day of the week it lands on.
That is the entire workflow. There is no submit button to hunt for and no page reload — the answer updates live as you adjust the numbers, so you can experiment with different offsets in seconds.
A worked example
Say you signed a contract today and the terms say payment is due in 45 days. Click Today, choose Add, and enter 45 in the days field. The tool returns the due date and tells you whether it falls on a weekend — handy, because a Saturday or Sunday deadline usually shifts to the next working day in practice.
You can also combine units. To find the date "2 months and 10 days" from a start date, put 2 in months and 10 in days at the same time. Years and months are applied first as true calendar jumps, then weeks and days are added as fixed 7-day and 1-day steps.
How the calendar math actually works
The calculator uses your browser's built-in date engine, which follows the Gregorian calendar. That gives you correct behaviour in the tricky cases most people get wrong by hand:
| Input | What the tool does | Result |
|---|---|---|
| Jan 31 + 1 month | Lands on the last valid day of the next month | Feb 28 (or 29 in a leap year) |
| Feb 28, 2028 + 1 day | Counts the leap day automatically | Feb 29, 2028 |
| Mar 15 − 30 days | Counts backward across month boundaries | Feb 14 |
| Dec 20 + 3 weeks | Adds 21 fixed days across the year end | Jan 10 (next year) |
Because month and year jumps respect real calendar lengths, you avoid the classic overflow bug where "one month after January 31" wrongly becomes March 3.
Why in-browser matters for date math
Every calculation happens locally in JavaScript. Nothing is uploaded, logged or sent to a server, which makes the tool safe for confidential legal, medical or financial planning — the kind of dates you would not want travelling across the internet. It also means the calculator keeps working offline once the page has loaded, so you can run date math on a plane or in a meeting room with no signal.
Try the Add or Subtract Days Calculator — free and 100% in your browser.
FAQ
Do I have to fill in every field?
No. Leave any unit at zero and the calculator ignores it. You can shift by days alone, weeks alone, or any mix you like — only the fields you fill in affect the result.
Can I add days and subtract months in the same calculation?
Not in a single pass — the Add/Subtract choice applies to the whole shift. To mix directions, do it in two steps: run one calculation, then use its result as the start date for the next.
Does the tool show which day of the week the result falls on?
Yes. Alongside the resulting date it displays the weekday, which is often the whole point when you are checking whether a deadline lands on a weekend.
What date format does it use?
It follows your browser and system locale for display, and you pick the start date from a standard date field, so there is no ambiguity about day-versus-month ordering.
Related free tools
- Date Difference Calculator — count the exact gap between two dates.
- Business Days Calculator — add or subtract working days only, skipping weekends.
- Days Until Date Calculator — see how many days remain to a future date.
- Weekday Finder — find the day of the week for any date.
Built by ByteVancer
ByteTools is a free product of ByteVancer, a software and web development studio that builds web apps, SaaS platforms and custom software. If you need a bespoke tool, internal calculator or full product built for your team, explore what ByteVancer can do.
Recommended reading
Date Math Tips and Common Mistakes to Avoid
Pro tips for adding and subtracting days accurately: month-end pitfalls, leap years, weekday checks and mistakes that throw deadlines off by a day.
Yes or No Generator: Real Use Cases and Examples
From beating decision paralysis to games and classrooms, see real use cases and examples for a random yes or no generator.
Yes or No Generator Tips and Common Mistakes
Get better decisions from a random yes or no generator. Pro tips, when to add Maybe, and the common mistakes to avoid when picking answers.
How to Use a Yes or No Generator: Quick Guide
Learn how to use a random yes or no generator step by step. Type a question, get an unbiased Yes, No or Maybe, all private and in-browser.