Age calculator
Work out an exact age in years, months and days on a given date, plus the next birthday.
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
Use it from code or an agent
curl -s https://setget.net/v1/tools/age-calculator \
-H 'Content-Type: application/json' \
-d '{"input":{"birth_date":"1990-05-15","on":"2026-03-05"}}'
import json, urllib.request
body = {'input': {'birth_date': '1990-05-15', 'on': '2026-03-05'}}
request = urllib.request.Request("https://setget.net/v1/tools/age-calculator", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/age-calculator", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"birth_date":"1990-05-15","on":"2026-03-05"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "age-calculator",
"input": {
"birth_date": "1990-05-15",
"on": "2026-03-05"
}
}
{
"input": {
"birth_date": "1990-05-15",
"on": "2026-03-05"
}
}
Endpoint: POST /v1/tools/age-calculator. Over MCP: run_tool with slug: "age-calculator".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
birth_date |
string | yes | Date of birth. |
on |
string | yes | The date to work out the age on, usually today. |
Example
Input
{
"birth_date": "1990-05-15",
"on": "2026-03-05"
}Result
{
"years": 35,
"months": 9,
"days": 18,
"total_months": 429,
"total_weeks": 1868,
"total_days": 13078,
"born_on": "Tuesday",
"birthday_today": false,
"next_birthday": "2026-05-15",
"next_birthday_weekday": "Friday",
"days_until_birthday": 71,
"turning": 36
}Questions
- How are people born on 29 February handled?
- In years without a 29 February the birthday is counted on 28 February. Some countries use 1 March in law, so check local rules if it matters.
- Why do I have to send the "on" date?
- So the same request always gives the same answer. Send today's date for a current age.
Related tools
- Date difference calculatorFind the time between two dates: total days, weeks, hours, minutes and seconds, plus years, months and days.
date-diff - Add or subtract time from a dateAdd or subtract years, months, weeks, days, hours and minutes from a date and get the resulting date.
date-add - ISO week numberFind the ISO 8601 week number of a date, or the Monday to Sunday date range of a given week.
iso-week - Aspect ratio calculatorSimplify a width and height to a ratio such as 16:9, and scale to a new width or height.
aspect-ratio - Business days calculatorCount the working days between two dates, or add working days to a date, skipping weekends and holidays.
business-days - Calculator and expression evaluatorWork out an arithmetic expression safely: brackets, powers, functions such as sqrt and log, and variables.
math-eval