ForHosting KIT · Science

Swine gestation calculator

A sow bred on January 1, 2026 is due to farrow around April 25, 2026: the calculator adds the 114-day mean pig gestation, the three months, three weeks and three days rule, so you can plan crates and night watches. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Breeding date
2026-01-01
You get
Gestation days
114
Due date
2026-04-25

Swine producers plan farrowing crates, all-in all-out rooms, and night watches from a single number: one hundred fourteen days after a known service or artificial-insemination day. That interval is the industry mnemonic three months, three weeks, and three days, and it is the mean porcine gestation printed on commercial sow calendars. This swine gestation calculator takes the breeding date as a strict YYYY-MM-DD calendar day, adds one hundred fourteen whole Gregorian days with explicit civil-day arithmetic, and returns the estimated farrowing due date. It never reads the host clock, never calls a network, and never rolls an impossible day such as twenty twenty-six February twenty-nine.

How porcine gestation becomes a farrowing due date

Commercial pig units and backyard keepers quote sow pregnancy in two related ways, and mixing them is the usual source of a wrong farrowing date. From a recorded natural service or artificial-insemination day, the mean interval to farrowing is one hundred fourteen days—the three-months-three-weeks-three-days mnemonic taught in every swine husbandry course.

Most healthy sows and gilts farrow in a narrow band from about one hundred twelve through one hundred sixteen days; litter size, parity, breed, season, and nutrition can shift an individual by a day or two, but one hundred fourteen remains the planning mean printed on crate calendars and farrowing-room boards. From the first day a boar is turned out with a group of weaned sows, the interval is wider, because the true conception day may lag turnout by a full twenty-one-day estrous cycle.

Landrace, Large White, Duroc, and commercial hybrid sows sit close to that mean. The path is educational and deterministic.

Herd farrowing calendar

Record the service or AI day, pin the one-hundred-fourteen-day due date on the crate board, and schedule night watches before the first sow is due.

Smallholder and youth-project planning

Estimate when a backyard gilt may farrow so a hut, heat lamp, and colostrum are ready before the due date.

Why 114 days instead of typing three months, three weeks, and three days?

Those three pieces add to one hundred fourteen whole days. Most sows farrow around 112–116 days, but herd calendars use the 114-day mean as the point estimate when the breeding day is known. This landing returns that estimate; scanning and clinical signs still refine the window on farm.

Can I use the first day the boar was penned with the sows?

Only if you treat turnout as a known service day. If the boar ran with the group for a cycle or more, conception may lag turnout by up to twenty-one days, so the due date is an earliest-case estimate, not a confirmed scan.

What does the swine gestation calculator cost?

The browser tool is free and runs offline.

How much can a sow's farrowing date vary?

Usually a day or two. Most healthy sows and gilts farrow between about 112 and 116 days after service; litter size, parity, breed, season and nutrition can move an individual sow within that band.

Does a leap year change the due date?

You do not need to adjust anything. The extra February day is counted, so a leap-day breeding still lands on a real day in June and every other breeding date stays exact.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/bio/swine-gestation

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/bio/swine-gestation \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"breeding_date":"2026-01-01"}'
{
  "breeding_date": "2026-01-01"
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "bio.swine_gestation",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

gestation_days114
HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Invalid input fails with invalid_input and is not billed.

How porcine gestation becomes a farrowing due date

This calculator encodes the planning convention used when the breeding day is known: due_date is breeding_date plus one hundred fourteen whole Gregorian days. It does not replace pregnancy diagnosis, ultrasound at mid-gestation, or a veterinarian's advice for an individual sow, and it never reads the server clock, so two machines in different time zones produce the same JSON for the same breeding day.

Input contract, calendar validation, and response shape

Years are accepted from 0001 through 9999 so historical farrowing records and future breeding plans share one parser. A leap-year breeding such as twenty twenty-four February twenty-ninth still lands on a real June day because the extra February day is counted. Failed validation is never charged. POST a JSON body with breeding_date, a real Gregorian calendar day in YYYY-MM-DD form. Aliases breed_date, mating_date, service_date, and date are accepted so farm-management spreadsheets and barn-office forms can map columns without renaming. The day must exist: twenty twenty-six February twenty-nine, month thirteen, and day thirty-two of April are all invalid_input, as are missing values, empty strings, and any shape that is not four digits, a hyphen, two digits, a hyphen, and two digits. On success the body echoes the normalized breeding_date, reports gestation_days as one hundred fourteen, returns due_date as the estimated farrowing day, and includes a short formula reminder. Example: breeding_date two thousand twenty-six January first yields due_date two thousand twenty-six April twenty-fifth because one hundred fourteen civil days after the first of January land on the twenty-fifth of April in a non-leap year. Successful API calls use prepaid balance at the published $0.002 base price with unit item.

Where a swine gestation calculator earns its keep

Commercial farrowing units use a swine gestation calculator to turn a recorded service or AI day into a crate-load deadline, a night-watch roster, and a calendar hold for the stockperson and the veterinarian. Smallholders and youth livestock projects estimate when a backyard gilt may farrow so a farrowing hut, heat lamp, and colostrum are ready before the first piglet. Prefer a dedicated days-between tool when you only need calendar distance without the porcine gestation model; prefer this capability when the output must be a farrowing point estimate from a known breeding day. The free browser tool runs entirely offline in your session; the API charges only successful solves at $0.002, keeps no durable copy of the breeding date after the response, and returns the same ISO fields every time so local goldens match production.

Livestock-app unit tests

Generate known-good leap-year and non-leap fixtures plus a deliberate invalid February twenty-ninth so mobile and API paths never disagree on a farrowing date.

How many days after breeding is a sow due to farrow?

The calculator adds 114 whole Gregorian days to the breeding date with civil-day arithmetic and returns that calendar day as due_date, the conventional mean porcine gestation from a known service or AI day (three months, three weeks, three days).

What breeding date formats does the swine gestation calculator accept?

A real Gregorian day in YYYY-MM-DD form on breeding_date (aliases breed_date, mating_date, service_date, date). Impossible days such as 2026-02-29, a missing field, or a non-ISO string fail with invalid_input and are not billed.

Read the full KIT documentation →