ForHosting KIT · Math

Reciprocal calculator

Get the reciprocal of any non-zero number, one divided by it: the reciprocal of 4 is 0.25, of two thirds is three halves, and of minus four is minus one quarter. Useful for turning a period into a frequency or resistance into conductance. 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
Value
4
You get
Reciprocal
0.25
Expression
1/4 = 0.25

Students meet it as the multiplicative inverse that turns a product into one; engineers use it when converting resistance to conductance, period to frequency, or a slope into its inverse rate. Data scripts need a deterministic 1/x that refuses zero instead of returning Infinity, and that refuses NaN instead of silently propagating a poison value.

What the reciprocal of a number is, and when 1/x is defined

The reciprocal of a number is the unique real number that multiplies with the original to give one. If x is finite and not zero, that partner is one divided by x, because x times one over x equals one. Algebra classes call the same object the multiplicative inverse and write it as x to the power of negative one; physics and finance notebooks more often say one over x and leave it as a quotient.

The definition immediately rules out two cases this calculator treats as errors rather than results. Negative inputs are allowed: the reciprocal of a negative number is negative, because one divided by minus four is minus one fourth. Magnitudes greater than one map to fractions between zero and one; magnitudes strictly between zero and one map to magnitudes greater than one.

Fractions such as two thirds have reciprocal three halves, and unit fractions such as one fifth have reciprocal five. Use this page when you need that single one-over-x value, not a matrix inverse, not a modular inverse modulo m, and not a harmonic mean that averages many reciprocals.

Classroom and homework checks

Let students submit a finite non-zero number and verify that the returned reciprocal is exactly 1/x, including signed values and unit fractions.

Period, resistance, and rate inversions

Convert period to frequency, resistance to conductance, or hours-per-item to items-per-hour with a deterministic 1/x that refuses zero.

Exam and LMS auto-grading

Mark reciprocal items with an oracle that rejects zero and non-finite input instead of returning Infinity a buggy grader might accept.

How do I compute the reciprocal of a number?

Example: value 4 yields 0.25, because 1/4 = 0.25.

Can I take the reciprocal of a negative number?

Yes. The reciprocal of a negative number is negative. One divided by minus four is minus 0.25, and the expression field writes 1/(-4) = -0.25.

What happens if the value is missing or not a finite number?

NaN, Infinity, empty strings, and non-numeric values are rejected and are not billed.

Why does zero have no reciprocal?

Because no number multiplied by zero gives one. Instead of showing an infinite result, the calculator tells you that zero cannot be inverted, so a bad value never slips into your work as if it were an answer.

What is the reciprocal of a fraction?

Turn it upside down: the reciprocal of two thirds is three halves, and the reciprocal of one fifth is 5. Numbers larger than one become fractions between zero and one, and the other way round.

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/math/reciprocal

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/math/reciprocal \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"value":4}'
{
  "value": 4
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "math.reciprocal",
  "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.

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.

The reciprocal of a number is one divided by that number: for any finite non-zero x, the reciprocal is 1/x, also written as x to the power of negative one. This reciprocal calculator accepts a single finite number, returns one divided by that input, and fails with invalid_input when the value is zero, missing, or not a finite number.

What the reciprocal of a number is, and when 1/x is defined

Zero has no reciprocal among the reals: there is no real y such that zero times y equals one, and IEEE floating point would return Infinity, which is not a number you can treat as a successful solve. Non-finite inputs — NaN, plus Infinity, and minus Infinity — are not members of the real line either, so they fail with invalid_input instead of echoing a non-finite reciprocal. The map is an involution on the non-zero reals: applying it twice recovers the original value, up to the twelve-decimal rounding used for a stable API contract.

Input contract, response shape, and how errors are reported

On success the body echoes the parsed value, returns reciprocal as one divided by that value rounded to twelve decimal places, and includes a short expression string plus the formula reciprocal equals one divided by value so you can display the identity next to the answer. Example: value equals four yields reciprocal 0.25 and the expression 1/4 = 0.25. Example: value equals minus two yields reciprocal minus 0.5. Example: value equals 0.25 yields reciprocal 4, which is the involution of the first case. Failed validation is not billed. POST a JSON body with one required finite number: value, the number whose reciprocal you want. A JSON number or a numeric string is accepted; missing fields, empty strings, booleans, arrays, objects, NaN, and Infinity fail with invalid_input. If the quotient overflows IEEE floating point and is no longer finite — a magnitude so small that one divided by value is Infinity — the task fails instead of returning Infinity. Pair the numeric fields with your own copy if you need longhand classroom steps; this endpoint computes the reciprocal and does not emit worked solutions beyond the formula and expression strings.

Where a reciprocal calculator earns its keep

Classrooms and tutoring platforms use a reciprocal calculator so learners can check one over x for arbitrary decimals without flipping a fraction by hand or trusting a phone that silently prints Infinity at zero. Finance and operations scripts invert a unit price into units per currency, or invert a hours-per-item rate into items per hour, and they need the inversion to fail loudly when someone pastes a zero rather than to emit an infinite productivity figure. Keep requests small, pin the rounded reciprocal in tests, and you get a reproducible one-over-x for homework, LMS plugins, and edge workers without standing up symbolic math infrastructure of your own. Exam generators need a deterministic oracle that marks zero and non-finite inputs as invalid instead of a success payload a buggy grader might treat as a correct blank. Science and engineering notebooks convert period to frequency with f equals 1/T, resistance to conductance with G equals 1/R, and a slope into its inverse rate with the same identity; calling a tiny parse API avoids pulling a computer-algebra system for a one-division problem.

What happens if the input is zero?

The task fails with invalid_input. Zero has no real reciprocal — there is no y such that 0 × y = 1 — so the calculator does not return Infinity and the call is not billed.

What does the reciprocal calculator cost?

The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.

Read the full KIT documentation →