Pregnancy & Pediatric · Free Online Tool

Gestational Age Calculator

Calculate gestational age from the first day of the last menstrual period. Enter the first day of the last menstrual period and a calculation date and it returns the gestational age on that date.

✓ Browser-side calculation✓ Responsive layout✓ Copy & print✓ Clear assumptions
Updated: November 9, 2026Category: Pregnancy & PediatricSign-up: Not required
Navjeet Kamboj
Written and maintained byNavjeet KambojAge Calculator Lab author & editor
Calculation engine

Use the Gestational Age Calculator

Calculator inputs are processed locally by the JavaScript included with this static page.

Result
Your result will appear here
ReadyEnter the required values

Review the inputs and select Calculate.

How it works

Get your Gestational Age result in four clear steps

Start with the first day of the last menstrual period. The explanation is broken into short actions so you can understand the workflow without reading a wall of text.

1

First day of last menstrual period

Enter the first day of the last period. Gestational age is counted from this date, not from conception.

2

Calculate on

Leave today’s date to see the current stage, or enter another date to check the stage reached on that day.

3

Average cycle length (days)

The field starts at 28 days; if the usual cycle is longer or shorter, enter it (20 to 45 days). It shifts the estimated due date, while the weeks-and-days count is measured from the LMP date.

4

Select Calculate and read the result

The result shows the gestational age as weeks plus remaining days, the trimester, and the estimated due date: the LMP date plus 280 days, adjusted for any difference from a 28-day cycle. It is an educational estimate, not medical advice.

What you get

Weeks and days counted from the last period

Enter the first day of the last menstrual period, the date to calculate on and, optionally, an average cycle length. The calculator counts the days between the two dates and reports the result as weeks plus remaining days, together with an estimated due date and trimester.

◌Method

Counted from the LMP date

Gestational age is counted from the first day of the last period. The days elapsed are grouped into whole weeks, with the leftover days shown separately. The estimated due date is the LMP date plus 280 days, shifted by any difference between the entered cycle length and 28 days.

◎Example

Worked example: LMP 12 May 2026

Calculated on 20 October 2026, a last period starting on 12 May 2026 is 161 days ago — 23 weeks, 0 days, in the second trimester. The estimated due date is 16 February 2027, which is 119 days after the calculation date.

⌁Limits

An LMP estimate, not a measurement

With a 32-day cycle entered, the same LMP gives a due date of 20 February 2027 — four days later — because cycle length adjusts the due date only; the weeks-and-days figure is always a straight count from the LMP date. Irregular cycles make either figure less exact.

Choose the right tool

Gestational Age Calculator vs related calculators

A gestational age is not a pregnancy week alone. Use this one when the question is the gestational age counted from the last menstrual period.

Use this calculator when

Gestational Age Calculator

  • You need gestational age from the first day of the last menstrual period.
  • Your source gives the first day of the last menstrual period and a calculation date, and you want the gestational age in weeks and days with the trimester and estimated due date.
  • You want the method and limitations on the same page.
Calculation method

What happens after you press Calculate

Measure pregnancy weeks and days from the documented dating start point.

Purposegestational age from the first day of the last menstrual periodMethod familyPregnancy & Pediatric
Actual datesGregorian month lengths are used where the mode is calendar-based.
Clear scopeThe result answers the focused question named at the top of this page.
Visible limitsEstimated or policy-dependent outputs are labeled for responsible use.
No sign-upCalculate, copy, print and continue to a related tool without an account.
Worked flow

See the calculation as a short timeline

Enter the last menstrual period and the calculation date and the timeline shows each step, from those dates to the gestational age.

Input AFirst day of last menstrual period

Enter the first day of the last period — gestational age is counted from this date, not from conception.

Input BCalculate on

Leave today's date to see the current stage, or enter another date, and optionally the Average cycle length (days), which shifts the estimated due date.

ResultGestational Age

Weeks and days from the LMP, with trimester and due date: an LMP of 12 May 2026 is 23 weeks, 0 days on 20 October 2026, in the second trimester, with a due date of 16 February 2027. An educational estimate, not medical advice.

Common use cases

Where this calculator can help

01

Pregnancy timeline planning

Use the estimated due date from your LMP and cycle length to plan scans, leave and preparation around the 40-week estimate.

02

Infant-age tracking

Note the gestational age at birth, then use the corrected-age calculator linked below to track milestones for a baby born early.

03

Preparing questions for a care team

Take the LMP, cycle length, calculation date and estimated due date to your care provider and ask how their scan-based dating compares.

Common questions

Gestational Age Calculator FAQ

Answers about method, inputs, privacy, boundaries and responsible interpretation.

How is gestational age counted?

From the first day of the last menstrual period (LMP), not from conception. The days elapsed between the LMP and the calculation date are grouped into whole weeks plus remaining days, which is the weeks-and-days figure the calculator reports.

How is the estimated due date worked out?

The due date is the LMP date plus 280 days, shifted by any difference between your average cycle length and 28 days. For an LMP of 12 May 2026, the estimate is 16 February 2027 with a standard 28-day cycle.

Does my cycle length change the weeks-and-days result?

No. Cycle length adjusts only the estimated due date: entering a 32-day cycle for the same LMP moves the due date four days later, to 20 February 2027, while the gestational age stays a straight count from the LMP date.

Why might an ultrasound scan give a different week or due date?

This calculator is an estimate built on cycle dates, and it assumes the timing implied by the cycle length you enter. A scan measures the pregnancy directly, so the two can differ, especially with irregular cycles; your care team decides which dating to follow. Treat this result as an educational estimate, not medical advice.

What does the result show besides weeks and days?

It also shows the trimester and how the dates line up: the page's worked example, an LMP of 12 May 2026 calculated on 20 October 2026, gives 23 weeks and 0 days in the second trimester, with the estimated due date 119 days after the calculation date.

Navjeet Kamboj, author at Age Calculator Lab
About the author

Navjeet Kamboj

Navjeet Kamboj is the author and editor of Age Calculator Lab. He focuses on making age, date, milestone and planning calculations easier to understand through clearly explained methods, practical examples and responsible limitations.