HomeHealth › Pregnancy Due Date Calculator

Pregnancy Due Date Calculator

Estimates the due date, conception date and current gestational age from the first day of the last menstrual period, adjusting for cycle length (Naegele's rule).

When to use

You know the first day of the last period and want the estimated due date, trimester dates or gestational age on a given date.

Do not use when: Cycles are very irregular, the LMP is unknown, or an ultrasound dating is available (ultrasound dating in the first trimester is more accurate and takes precedence).

Formula

due_date = LMP + 280 days + (cycle_length − 28); conception ≈ LMP + 14 + (cycle_length − 28); gestational_age = as_of_date − LMP

Inputs

ParameterTypeUnitRequiredDescription
last_period_datedateyesFirst day of the last menstrual period (ISO date YYYY-MM-DD).
cycle_length_daysintegerdaysdefault 28Average menstrual cycle length; the due date shifts by (cycle − 28) days. Range: ≥ 20, ≤ 45
as_of_datedatenoOptional date on which to report gestational age (weeks + days). Omit to skip.

Outputs

OutputTypeUnitDescription
due_datedateLMP + 280 days + (cycle − 28).
conception_date_estimatedateApproximately LMP + 14 days + (cycle − 28).
second_trimester_startdateWeek 14 (day 91 of pregnancy).
third_trimester_startdateWeek 28 (day 189).
gestational_agestringWeeks and days as of as_of_date (only when as_of_date is given).
gestational_daysintegerdaysDays since LMP as of as_of_date (only when given).

Example

LMP 2026-01-01, 28-day cycle, as of 2026-04-15: {"last_period_date":"2026-01-01","cycle_length_days":28,"as_of_date":"2026-04-15"}{"due_date":"2026-10-08","conception_date_estimate":"2026-01-15","second_trimester_start":"2026-04-02","third_trimester_start":"2026-07-09","gestational_age":"14 weeks 6 days","gestational_days":104}

LMP 2026-03-10, 32-day cycle: {"last_period_date":"2026-03-10","cycle_length_days":32}{"due_date":"2026-12-19"}

GET https://tttkmbb.com/api/v1/calculate/pregnancy-due-date?last_period_date=2026-01-01&cycle_length_days=28&as_of_date=2026-04-15

Machine access

Sources

FAQ

How accurate is the due date?

Only about 4% of babies arrive on the estimated date; most are born within two weeks either side. First-trimester ultrasound refines the estimate.

How are trimesters defined?

Following ACOG: first trimester through 13 weeks 6 days, second from 14 weeks 0 days, third from 28 weeks 0 days.

Related calculators