Use this free pregnancy calculator to enter your last period date and cycle length to see your gestational age in weeks and days, your Naegele due date and your current trimester.

Pregnancy Calculator

Gestational age, due date and trimester from your last period date, with the cycle-length adjustment most simple tools skip.

Free to use Cycle adjustment Trimester shown Not medical advice

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for first day of last period.

Last menstrual period (LMP) date.

days

Enter a valid value for cycle length.

Average cycle length; due date shifts by (cycle - 28) days.

Enter a valid value for calculate as of.

Reference date for gestational age (use today).

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Pregnancy Calculator tinyexe.comFree online calculators

TinyExe · Pregnancy Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

First day of last period

—

Cycle length

—

Calculate as of

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Pregnancy Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      To calculate gestational age, count the days from the first day of the last menstrual period to today and divide by seven. A last period starting 1 January measured on 29 January gives twenty eight days, exactly four weeks pregnant, and Naegele’s rule sets the due date 280 days after the period start.

      • Due date = LMP + 280 days (Naegele), adjusted for cycle length
      • Gestational age is counted from LMP, not conception
      • Full term is 39-40 weeks; only ~4% arrive on the due date

      Pregnancy milestones by gestational age

      Reference values for this calculator.

      MilestoneGestational ageNote
      End of first trimester13 weeks 6 daysMiscarriage risk falls sharply
      Anatomy scan window18-22 weeksStandard ultrasound window
      Viability threshold (approx.)23-24 weeksVaries by centre
      Full term (early)37 weeksACOG definitions begin
      Due date40 weeks280 days from LMP

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      Gestational age = days from first day of LMP to reference date; Due date (Naegele) = LMP + 280 days + (cycle length - 28) days; trimester by completed weeks

      Uses Naegele’s rule with a cycle-length adjustment, reports gestational age in days as the headline plus weeks+days, due date and trimester. Enhancement: the cycle adjustment and an explicit reference date make the result reproducible instead of silently using today.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      Four weeks exactly

      LMP 2026-01-01, cycle 28, reference 2026-01-29

      CalculationSteps
      Days = 29 Jan - 1 Jan = 28 days = 4 weeks 0 days. Due date = 1 Jan + 280 days = 2026-10-08.28 days pregnant, 4 weeks 0 days, due 2026-10-08, first trimester.

      Result

      Example 2

      Fourteen weeks with a longer cycle

      LMP 2026-01-01, cycle 35, reference 2026-04-09

      CalculationSteps
      Days = 98 = 14 weeks 0 days. Due date = 1 Jan + 280 + (35-28) = +287 days = 2026-10-15.98 days pregnant, second trimester, due date shifted a week later by the 35-day cycle.

      Result

      Example 3

      Twenty weeks at the anatomy scan

      LMP 2026-01-01, cycle 28, reference 2026-05-21

      CalculationSteps
      Days = 140 = 20 weeks 0 days, inside the standard 18-22 week anatomy scan window.140 days pregnant, 20 weeks, second trimester.

      Result

      How to use this calculator

      Step 1

      Enter the first day of your last menstrual period.

      Step 2

      Adjust cycle length if yours is not 28 days.

      Step 3

      Set the reference date, usually today.

      Step 4

      Read gestational age in days, weeks and days.

      Step 5

      Take the due date as an estimate window of about two weeks either side.

      In short: Gestational age is the age of a pregnancy measured from the first day of the last menstrual period, and a full pregnancy lasts about 280 days or 40 weeks.

      Frequently asked questions

      How is the due date calculated?

      By Naegele’s rule: add 280 days (40 weeks) to the first day of the last period, adjusted by the difference between your cycle length and 28 days. It assumes ovulation on day 14 of a 28-day cycle.

      How accurate is a due date?

      Only about 4% of babies are born on their due date; most arrive within two weeks either side. A first-trimester ultrasound dating is usually more accurate than LMP dating.

      What if my cycles are irregular?

      LMP dating can be off by weeks with irregular cycles. Enter your average cycle length as a rough adjustment and rely on the dating ultrasound your clinician orders.

      Which trimester am I in?

      First trimester runs to 13 weeks 6 days, second from 14 weeks to 27 weeks 6 days, and third from 28 weeks until birth. This tool reports the trimester from your gestational age.

      Does this replace medical advice?

      No. It is an estimate for planning only; your clinician’s dating, based on history and ultrasound, overrides any calculator.

      About this calculator

      A pregnancy calculator works out how far along a pregnancy is — gestational age in days, weeks and days — from the first day of the last menstrual period, and projects the due date with Naegele’s rule. It also names the current trimester, which is how appointments and screening windows are scheduled.

      Obstetrics counts pregnancy from the last period, not from conception, because the period date is knowable and conception day usually is not. That is why you are already about two weeks “pregnant” at ovulation and four weeks at a missed period.

      Naegele’s rule adds 280 days to the LMP. Its hidden assumption is a 28-day cycle with ovulation on day 14; this calculator corrects for that by shifting the due date by (your cycle minus 28) days, which matters for women with 35-day cycles, whose ovulation is typically a week later.

      Use it after a positive test to estimate your week, plan the first midwife or OB appointment, and understand screening windows quoted in weeks. Use the reference-date field to answer “how far along will I be on a given date” for travel or event planning.

      How to calculate it yourself

      Step 1

      Find the first day of your last period (day 1, not the last day).

      Step 2

      Count the days from that date to today — that is gestational age in days.

      Step 3

      Divide by 7: the quotient is completed weeks, the remainder is extra days.

      Step 4

      Add 280 days to the LMP, plus (cycle length - 28) days, for the due date.

      Step 5

      Match completed weeks to the trimester bands for screening windows.

      Real-life examples

      Planning a holiday around the due date

      A couple with an LMP of 1 January 2026 want to know how far along the pregnancy will be for a trip on 21 May 2026, and when the baby is due.

      Reference 2026-05-21 gives 140 days = 20 weeks 0 days, mid-second trimester, a common comfortable travel window; due date is 2026-10-08.

      20 weeks on the trip date; due 2026-10-08.

      Long cycles, later due date

      A woman with regular 35-day cycles gets an LMP of 1 January 2026 and is told a flat 40-week date by a simple app, which feels early to her clinician.

      With the cycle adjustment the due date is LMP + 287 days = 2026-10-15, a week later than the unadjusted 2026-10-08, matching her later ovulation.

      Adjusted due date 2026-10-15 instead of 2026-10-08.

      Ideas & use cases

      • Plan backwards from the due date: set the reference date to a wedding, flight or work deadline to see your week on that day before committing.
      • Compare LMP dating with a dating scan: if the scan moves the date by more than about a week in the first trimester, clinicians usually keep the scan date.
      • Use the trimester output to time screening: enter future reference dates to see when the 18-22 week anatomy window opens for you.

      Limitations & sources

      • Estimate only, based on LMP and an assumed ovulation day; irregular cycles, IVF pregnancies and ultrasound dating can shift the real due date. It does not diagnose pregnancy or replace antenatal care.

      Sources: Naegele’s rule as described in standard obstetrics references; ACOG Committee Opinion on methods for estimating the due date (No. 700) · NHS pregnancy due date guidance: pregnancy lasts about 280 days from LMP

      Pregnancy Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results