Calculate Ovulation in Google SheetsCalculate Ovulation in Google Sheets

OnlineCredit Usage:1 per cell

Formula

The API calculates most fertile days, follicular and luteal phases, and provides a comprehensive fertility calendar with day-by-day fertility levels.

In a cell
=VERVE("ovulationcalculator", A2)
In a cell
=VERVE.CALL("ovulationcalculator", A2)

A2 holds the last_period you're looking up. Drag the formula down and each row resolves on its own.

With literal values

Nothing has to come from a cell — typed values work the same way.

Sheets
=VERVE("ovulationcalculator", "2024-01-01")

Inputs

Required inputs are positional, in the order below. Everything else is passed as a "name", value pair after them — the same shape as SUMIFS.

InputTypeWhere it goesDescription
last_periodRequiredstringargument 2First day of last menstrual period (YYYY-MM-DD) (e.g. 2024-01-01)
cycle_lengthinteger"cycle_length", valueAverage menstrual cycle length in days (e.g. 28)

Passing an option

Sheets
=VERVE("ovulationcalculator", A2, "cycle_length", "28")

What lands in your sheet

With no "field" pair the formula spills the whole response as two columns — field name on the left, value on the right — starting at the cell you typed in. Make sure the cells below and to the right are empty.

Pulling one value

Add a "field" pair to get a single cell back instead of a table. The field name is the dot-path from the table below.

Returns last_period
=VERVE("ovulationcalculator", A2, "field", "last_period")
Returns last_period
=VERVE.CALL("ovulationcalculator", A2, "field", "last_period")

Available fields

Fields marked Premium need a paid plan. On the free plan those cells read #PREMIUM(field) rather than a value, so a locked field never looks like a real answer.
Use as "field"TypeExample cell valueDescription
last_periodstring2024-01-01The first day of the last menstrual period provided
cycle_lengthnumber28The average menstrual cycle length in days
ovulationobject{…}Estimated ovulation date and how many days into the cycle it falls
ovulation.datestring2024-01-15Calculated ovulation date in YYYY-MM-DD format
ovulation.days_from_last_periodPremiumnumber14Number of days from last period to ovulation
fertile_windowobject{…}Range of days conception is possible, with its length
fertile_window.startPremiumstring2024-01-10Start date of the fertile window period
fertile_window.endPremiumstring2024-01-15End date of the fertile window period
fertile_window.duration_daysPremiumnumber6Total duration of fertile window in days
most_fertile_daysobject{…}The narrower range with the highest chance of conception
most_fertile_days.startPremiumstring2024-01-13Start date of the most fertile days period
most_fertile_days.endPremiumstring2024-01-15End date of the most fertile days period
most_fertile_days.duration_daysPremiumnumber3Duration of the most fertile days in days
fertile_daysPremiumarray[6]list of rowsArray of daily fertility data with levels and descriptions
fertile_days.0.datestring2024-01-10
fertile_days.0.day_relative_to_ovulationnumber-5
fertile_days.0.fertility_levelstringmedium
fertile_days.0.descriptionstringFertile
next_periodobject{…}Estimated start of the next period and how many days away it is
next_period.datePremiumstring2024-01-29Estimated date of the next menstrual period
next_period.days_from_last_periodPremiumnumber28Days from last period to expected next period
cycle_phasesobject{…}The phases of the cycle with their length and what happens in each
cycle_phases.follicular_phaseobject{…}From the first day of the period to ovulation
cycle_phases.follicular_phase.duration_daysPremiumnumber14Duration of follicular phase in days
cycle_phases.follicular_phase.descriptionPremiumstringFrom first day of period to ovulationDescription of the follicular phase
cycle_phases.ovulationobject{…}The day the egg is released
cycle_phases.ovulation.duration_daysPremiumnumber1Duration of ovulation phase in days
cycle_phases.ovulation.descriptionPremiumstringEgg is released from ovaryDescription of the ovulation phase
cycle_phases.luteal_phaseobject{…}From ovulation to the start of the next period
cycle_phases.luteal_phase.duration_daysPremiumnumber14Duration of luteal phase in days
cycle_phases.luteal_phase.descriptionPremiumstringFrom ovulation to next periodDescription of the luteal phase
current_statusobject{…}Where today falls in the cycle, and whether it is a fertile day
current_status.current_phasePremiumstringMenstruationCurrent phase of menstrual cycle relative to today
current_status.is_fertilePremiumbooleanfalseWhether the user is currently in the fertile window
current_status.days_until_ovulationPremiumnumber-701Days until ovulation from today (negative if past)
current_status.days_until_next_periodPremiumnumber-687Days until next period from today (negative if past)
disclaimerstringThis calculator provides estimates only. Actual ovulation may vary. Consult a healthcare provider for medical advice.Medical disclaimer regarding calculator accuracy

Filling a whole column

Hand the first argument a range instead of a cell and the add-in makes one batched call for the lot, then spills the answers down. That is faster than dragging the formula and costs the same credits — one per row looked up.

Rows 2–100 in one call
=VERVE("ovulationcalculator", A2:A100, "field", "last_period")
Rows 2–100 in one call
=VERVE.CALL("ovulationcalculator", A2:A100, "field", "last_period")

A2:A100 is the column of last_period values. The result spills down alongside it, one row per input, blanks skipped.

When a cell doesn't fill

A failed lookup returns readable text starting with #ERR rather than a spreadsheet error, because Excel cannot show a custom message on a real error — you would get a bare #VALUE! with no reason. The trade-off is that IFERROR() won't catch it; test with LEFT(cell, 4) = "#ERR" instead.

Cell readsWhat happened
#ERR Not connectedNo API key saved. Open the side panel and connect your account.
#ERR Replace <name> with a cell or valueThe preview formula was copied as-is. Swap the placeholder for a cell reference.
#ERR No "x" in ovulationcalculatorAn option name that this source doesn't take. The message lists the ones it does.
#ERR No data point "…"The "field" path isn't in the response. Check the dot-path against the table above.
#PREMIUM(field)The field exists but your plan doesn't include it.
#ERR Out of creditsThe month's credits are spent. Usage resets on your billing date.

Before the formula works

The add-in reads the API key you saved once in the side panel — the key never goes in the formula, so a shared sheet doesn't leak it and a collaborator without access simply sees the last calculated values.

  1. Install the add-in for Google Sheets or Excel.
  2. Open the side panel and sign in, or paste a key from your dashboard.
  3. Type the formula above into any cell.

Other ways to use Calculate Ovulation in Google Sheets

Set up Calculate Ovulation in Google Sheets on VerveSheets, or reach the same source a different way. Your VerveSheets account and credits work on all of them — one key, one balance.

Call it as a REST APIOne HTTPS endpoint and an X-API-Key header, with SDKs for Node, Python and .NET.APIVerveReference →
Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKitReference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContextReference →

Frequently asked questions

Does Calculate Ovulation in Google Sheets work in both Google Sheets and Excel?

Yes — the same source, the same arguments. Sheets calls it =VERVE("ovulationcalculator", …) and Excel calls it =VERVE.CALL("ovulationcalculator", …); that function name is the only difference.

Do the cells recalculate on their own?

They recalculate when the sheet does — on edit, on open, or on a manual recalc. Each recalculation is a fresh call and spends credits, so for a large static column it's worth copying the results and pasting them as values.

How many credits does a filled column cost?

1 credit per row looked up, whether you drag the formula or pass a range. The range form is one HTTP call instead of many, but the credit count is the same.

Can I share the sheet without sharing my key?

Yes. The key is stored against your account, not in the file. Collaborators see the values already in the cells; formulas only recalculate for someone who has connected their own account.

Why is a cell showing #ERR instead of an error?

So you can read the reason. Excel can't display a custom message on a real spreadsheet error, so the add-in returns the explanation as text on both platforms instead.

What's Next?

Continue your journey with these recommended resources

Was this page helpful?