Age calculator

Work out an exact age in years, months and days on a given date, plus the next birthday.

Input

Date of birth.
The date to work out the age on, usually today.

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

NameTypeRequiredWhat 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.