AbraCalc

Pregnancy Weeks Remaining Calculator

Calculate how many weeks and days remain until your estimated due date. Enter your due date and today’s date.

Embed this tool on your site

How to use this tool

  1. Enter estimated due date and today’s date in the fields above.
  2. Results update instantly as you type — or click Calculate.
  3. Read your weeks remaining and the full breakdown beneath it.

Educational estimate — not medical advice. Consult a clinician.

Enter your estimated due date and today’s date to see how many weeks and days remain until your baby’s estimated arrival. Due dates are estimates; only ~5% of babies arrive on the exact date.

Formula

Total days remaining = round((due date − today) ÷ 86 400 000 ms)

Weeks remaining = floor(total days ÷ 7)

Extra days = total days mod 7

How it works

This calculator subtracts today's date from the estimated due date to find the total number of days remaining, then converts that figure into whole weeks plus leftover days. The calculation uses UTC millisecond timestamps to avoid daylight-saving distortions. It assumes the due date provided is accurate; actual labour can occur 2–3 weeks either side of the estimate.

Worked example

Worked example

  1. Due date: 2026-12-01. Today: 2026-06-24.
  2. Difference in days: round((2026-12-01 − 2026-06-24) ÷ 86 400 000 ms) = 160 days.
  3. Whole weeks: floor(160 ÷ 7) = 22 weeks.
  4. Extra days: 160 mod 7 = 6 days.

22 weeks and 6 extra days remaining (160 total days).

Key terms

Estimated due date (EDD)
The predicted date of delivery, typically calculated as 40 weeks from the first day of the last menstrual period.
Gestational age
How far along a pregnancy is, measured in weeks and days from the first day of the last menstrual period.
Trimester
One of three roughly 13-week stages of pregnancy: first (weeks 1–13), second (14–26), and third (27–40).
Full term
A pregnancy that has reached 39–40 weeks of gestation, at which point the baby is considered fully developed.

Frequently asked questions

What if my due date changes after an ultrasound?
Update the due date field with your revised estimate. Dating ultrasounds at 8–14 weeks are accurate to within ±5–7 days.
What week of pregnancy will I be at my due date?
Your due date falls at 40 weeks of pregnancy (gestational age). Full term is 39–40 weeks; early term is 37–38+6 weeks.
What if the result is negative (overdue)?
This calculator returns 0 if the due date is in the past. If you are past your due date, speak with your midwife or obstetrician.

References & sources