Gestational Age From LMP Calculator

Arithmetic obstetric age from independently established LMPdate, not conception verification or confirmation of pregnancy. Manual Gregorian date validation; uncertain cycles, LMPand ultrasound dating must be reviewed clinically.

Description

Gestational age from the last menstrual period counts elapsed calendar days from the recorded menstrual anchor.

Gestational age from the last menstrual period counts elapsed calendar days from the recorded menstrual anchor.1, 2

Uncertain dates and cycle variation remain separate from that count.

When to use Gestational Age From LMP Calculator

Use this tool to calculate or review the supplied observations under the stated rules. Establish the observation date, units, measurement context and independently applicable clinical reference or calibrated model.

How to use Gestational Age From LMP Calculator and understand its results

  1. Establish the observation date, units, measurement context and independently applicable clinical reference or calibrated model.
  2. Enter independentlyRecordedLmpDate, asOfDate, using the field meanings and rules below, then run the tool.
  3. Read result.conditionalGestationalDays, result.completedGestationalWeeks, result.additionalGestationalDays. Use the units and sign conventions below.
  4. Correct any reported input issue and run again. Before using a successful result, check the stated units, signs, reference scope and observation coverage.
Input fieldMeaningValue typeRequirement
independentlyRecordedLmpDateIndependently recorded lmp datestringRequired
asOfDateAs of datestringRequired

Parse real Gregorian menstrual-anchor and as-of dates in years 0001–9999. Require elapsed days to be an integer 0–450. Return elapsed days, floor(days/7) completed weeks and days%7 additional days. No uncertainty or cycle adjustment is applied.

gestationalDays=ordinal(asOfDate)−ordinal(lmpDate); completedWeeks=floor(days/7); additionalDays=days%7

Use the matching field units and the exact boundary, ordering and reference rules above.

Output fieldMeaningValue type
resultStructured result; its nested fields below contain the actual calculation or selected referenceobject
result.conditionalGestationalDaysConditional Gestational Daysnumber
result.completedGestationalWeeksCompleted Gestational Weeksnumber
result.additionalGestationalDaysAdditional Gestational Daysnumber
json
{
  "input": {
    "independentlyRecordedLmpDate": "2026-01-01",
    "asOfDate": "2026-02-01"
  },
  "output": {
    "result": {
      "conditionalGestationalDays": 31,
      "completedGestationalWeeks": 4,
      "additionalGestationalDays": 3
    }
  }
}

Limitations and assumptions

Dating evidence, acquisition conditions and applicable clinical references remain independently established. The output describes supplied observations or a conditional model without diagnosing an outcome, choosing a dose or verifying clinical applicability.

Missing required fields, unknown fields, wrong types and violated rules return input issues. Numeric values and outputs must be finite. Extremely large composite outputs are rejected.

Alternative or Complementary methods

For a related step, use Gestational Age From Conception Calculator: Time since conception and obstetric gestational age use different date anchors. For a complementary comparison, use Due Date Naegele Calculator: A cycle-adjusted Naegele calculation shifts a recorded menstrual date by a conventional duration.

References

  1. Gestational Age From LMP Calculator — tool.io

  2. Methods for estimating the due date — American College of Obstetricians and Gynecologists

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies