Formula: Pregnancy Due Date Reference Equation
- daysSinceLmp: Days Since Lmp (days)
- cycleDays: Cycle Days (days)
Track gestational age, trimester progress, and cycle-adjusted delivery countdown.
From the first day, when bleeding started. That is the LMP date the 280-day rule is built on. Counting from the last day of bleeding pushes every result several days off, making the pregnancy seem shorter and the due date later than the standard method would give.
Add the days remaining to today's date. On the default inputs that means counting 182 days forward from the day you entered 98 days since LMP. A calendar app or date calculator makes this easy. The page itself shows a countdown and percentages, not a printed date. Write the date down once, so you are not recounting it every visit.
The page shifts the due date seven days later and shows that on the cycle adjustment line. It also takes the same seven days off your gestational age, so at 98 days since LMP the weeks line reads 13 weeks instead of 14 and completion is 32.5%. The two figures stay consistent with a 40-week pregnancy.
It means 8 weeks and 3 days. The decimal is a fraction of a week, so 0.43 times seven is about three days. The interpretation sentence already does this conversion, so copy weeks and days from there rather than reading the decimal as a day count. Antenatal notes use the weeks and days format.
Gestational age is counted from the start of the last period, not from conception. In a typical cycle conception comes about two weeks after the LMP, so those first two weeks are included by convention. Doctors and scan reports use the same system, which keeps everyone's numbers consistent.
Days remaining stays at zero, completion stays at 100%, and the days past due date line counts how far beyond the estimate you are. Twenty days past it, the page shows 42.86 weeks and 20 days past due. The field stops a little over 44 weeks, and beyond that you get an input error. Speak to your care team if you are past the date.
Use the date your care team gives you. An early scan often dates a pregnancy more accurately than the LMP, especially with irregular cycles. To match the page to it, subtract the scan-based days remaining from 280 and enter that figure as days since LMP.
It is the cycle-adjusted elapsed days divided by the full 280 days. On the default, 98 of 280 days is 35%. At 147 days it reaches 52.5%, just past halfway. It stops at 100% on the due date and does not climb further. It is a simple progress bar for planning and has no clinical meaning beyond the count of days already passed. Treat it like a progress bar on a long trip.
Cycle length. That is the number of days from the first day of one period to the first day of the next, often somewhere around four weeks. The field accepts 21 to 45 days. The length of bleeding is a different, much smaller number, and entering it by mistake now returns an input error rather than a misleading due date.
Only roughly. These pregnancies are usually dated from the treatment or transfer date rather than a period, and the page has no field for that. Your clinic will give you a due date. You can match the countdown to it by working back to an equivalent days since LMP figure.
No. It applies the same 280-day rule, adjusted only for cycle length, to every pregnancy. It has no input for previous births, age, twins or any medical history, and none of those change the arithmetic here. If any of them affect how your pregnancy is dated or managed, your midwife or doctor will tell you, and their date takes priority over this page.
Because 98 days divides evenly by seven. Any multiple of seven gives a whole number of weeks, so 147 days gives exactly 21 weeks. Other day counts produce a decimal, such as 8.43 weeks at 59 days, which the interpretation sentence turns into weeks and days. Nothing is being rounded on the default; it simply falls on a week boundary.
This calculator works from two numbers: how many days have passed since the first day of your last menstrual period (LMP), and your usual cycle length. The defaults are 98 days and a 28-day cycle. The headline result is 182 days remaining until the due date.
The supporting lines fill in the rest. Current gestational age is 14 weeks and pregnancy completion is 35%. Days past due date reads 0, and the cycle adjustment to the due date also reads 0, because the default cycle is the standard 28 days. The interpretation sentence ties it together: at 14 weeks 0 days of cycle-adjusted gestation, 182 days remain until the due date.
The arithmetic is short. Naegele's rule puts the due date 280 days, or 40 weeks, after the LMP for a 28-day cycle. The page subtracts the days already elapsed: 280 minus 98 leaves 182 days. Gestational age is the elapsed days divided by seven, and completion is the elapsed days as a share of 280, so 98 out of 280 is 35%.
Nothing more is hidden in the result. There is no ultrasound data, no adjustment for a first pregnancy and no medical judgement. It is a counting tool built on a long-standing obstetric convention.
The page asks for days since LMP rather than a date, so the first step is counting. Use the first day of your last period, the day bleeding started, not the day it ended. Getting this wrong by four or five days shifts every line on the result by the same amount. The field accepts whole or part days from zero up to a little over 44 weeks' worth; anything outside that range returns an input error instead of a result.
Count calendar days from that date to today. If your LMP was exactly two weeks ago today, enter 14. A phone calendar or a date difference calculator saves mistakes with month lengths. Avoid counting both the start day and today, which adds one day too many.
Once you have the result, you can turn it back into a date. Add the days remaining to today's date and you have the estimated due date. On the default, 182 days from today is the day the page is pointing at.
Rerun the calculator on later days by adding the elapsed time to your first entry. A week later, add seven to the default 98 and the remaining count drops by seven too. Or recount from the LMP each time, which avoids drift.
If you are tracking the pregnancy over several weeks, keep the LMP date written down somewhere safe rather than the day count. The date never changes, while the day count goes stale the moment you close the page. Recounting from the same date also means any error you made once does not keep compounding as you add weeks by hand.
Gestational age is not the time since conception. It is counted from the start of the last period, because that is a date most people know and conception usually is not. In a typical 28-day cycle, ovulation and conception come around two weeks after the LMP, so the first two weeks of the 40 are, strictly, before the pregnancy began.
This catches people out. Someone who knows the exact date of conception may feel the page says they are two weeks further along than they think. Both views can be right; they use different starting points. Doctors, midwives and scan reports use gestational age from the LMP, so that is the figure to use when talking to them.
That convention is also why the default 98 days reads as 14 weeks even though the embryo is younger than that. The numbers on the page line up with the way antenatal appointments and scans are usually described.
The second input adjusts for cycles that are longer or shorter than 28 days. The rule is one day later for each day your cycle runs over 28, and one day earlier for each day under. The page shows that shift on its own line, the cycle adjustment to the due date, and accepts cycle lengths from 21 to 45 days. Anything outside that range returns an input error.
I ran the default 98 days with different cycle lengths. With a 35-day cycle the adjustment line reads 7 days, and the days remaining rise by seven compared with the default. With a 21-day cycle it reads minus 7 days, and the remaining count falls by seven. The default 28-day cycle gives an adjustment of 0.
The logic is that a longer cycle usually means later ovulation, so conception and everything after it shift later too. That works best when your cycles are fairly regular. If they vary a lot from month to month, an average cycle length is only a rough guide, and an early dating scan is generally a better anchor.
Use your typical cycle, measured from the first day of one period to the first day of the next. Do not enter the length of the period itself. A figure like 5 is now rejected by the range check, but a slip that still lands inside the range would quietly move the due date.
The cycle adjustment is applied to gestational age as well as to the due date, so the two always agree. The page subtracts the adjustment from the days since LMP before turning them into weeks, which keeps the full pregnancy at 280 adjusted days, or 40 weeks, whatever cycle length you enter.
With 98 days since LMP and a 35-day cycle, the weeks line reads 13 weeks rather than 14, completion is 32.5% and seven more days remain than on the default. With a 21-day cycle it reads 15 weeks, completion is 37.5% and seven fewer days remain. In each case the remaining days plus the adjusted elapsed days add back to 280 days.
This is why your weeks on this page can differ from a plain count of days since LMP divided by seven. The interpretation sentence labels the figure as cycle-adjusted gestation to make that clear. If your clinic uses an unadjusted count, or a scan date, their weeks will not always match these.
Very early in a pregnancy with a long cycle, the adjustment can be larger than the days elapsed. In that case the weeks and completion lines can show a small negative value, which simply means the adjusted count has not yet reached day zero. Treat it as too early for the weeks line to mean anything.
The gestational age line shows weeks as a decimal, while antenatal notes use whole weeks plus days. The two are easy to confuse. At 59 days since LMP the page shows 8.43 weeks, and the interpretation sentence translates it to 8 weeks 3 days.
The decimal part is a fraction of a week, not a number of days. So 8.43 weeks is not 8 weeks 4 days; it is 8 weeks plus 0.43 of seven days, which is three days. If you write the decimal down as weeks and days, read it from the interpretation sentence instead.
Whole weeks fall out neatly on multiples of seven, which is why the default 98 days and the higher run of 147 days give clean 14 and 21 week results. At 147 days the page shows 133 days remaining and 52.5% completion, which puts you just past the halfway point at 20 weeks.
At exactly 280 days on a 28-day cycle the result reads 0 days remaining, 40 weeks and 100% completion. Beyond that the countdown stays at zero, completion stays capped at 100%, and the days past due date line starts counting. Twenty days past the due date it shows 42.86 weeks and 20 days past due date, and the interpretation sentence says the pregnancy is 20 days past the due date.
So the headline never goes negative; the overdue count has its own line instead. The weeks shown in the summary are whole days, so the sentence reads 42 weeks 6 days rather than a decimal. If you are past the estimate, that line is the one to watch, and the person to tell is your midwife or doctor.
A due date is an estimate, not an appointment. Only a minority of babies arrive on the exact day, and births a little before or after it are normal. The page does not judge whether a pregnancy is early, late or overdue in a clinical sense. That is a decision for your care team, who will plan around your own history.
It also helps to think of the result as a window rather than a single day. Plans such as starting leave, arranging help at home or booking travel are easier to make if you allow for a birth some days either side of the date this page points to. The countdown is a planning aid, and the 182 days on the default are best read as roughly six months, not a fixed deadline.
Naegele's rule assumes you know your LMP and that ovulation came at the usual point in a regular cycle. That fits many pregnancies but not all of them. Irregular cycles, an uncertain LMP, a recent pregnancy, breastfeeding or stopping hormonal contraception shortly before conceiving can all make the LMP a weak anchor.
In those cases clinicians often date the pregnancy from an early ultrasound instead, and the scan date may differ from what this page says. If your care team gives you a scan-based due date, use that. You can still use the page by working backwards: leave the cycle at 28, subtract your scan-based days remaining from 280 and enter the result as days since LMP, so the countdown and completion line match the date you were given.
Pregnancies after fertility treatment are often dated from the transfer or procedure date rather than a period. The page has no input for that, so the clinic's own date is the one to rely on.
Whatever you enter, the calculator gives arithmetic, not medical advice. It is good for planning leave, sharing news and tracking milestones. Questions about the health of a pregnancy belong with a midwife or doctor.