Home · Everyday · Trigonometry · Sigmoid Calculator
Sigmoid Calculator
Evaluates the logistic sigmoid σ(x) = 1/(1 + e^−x), squashing any real input into a probability-like value between 0 and 1.
What this calculator does
Evaluates the logistic sigmoid σ(x) = 1/(1 + e^−x), squashing any real input into a probability-like value between 0 and 1. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
The sigmoid (logistic) function maps the real line onto (0, 1): σ(x) = 1/(1 + e^(−x)). It is symmetric about σ(0) = 0.5, approaches 1 as x → ∞ and 0 as x → −∞, and its inverse is the logit, ln(p/(1−p)) — which is why the odds p/(1−p) simplify exactly to e^x.
In logistic regression x is a linear score and σ(x) the predicted probability. Numerically, very negative x makes e^(−x) overflow in a naive implementation; stable code switches to the equivalent e^x/(1 + e^x) form for x < 0. The output never quite reaches 0 or 1, only rounds to them.
Worked example
With the example inputs this page opens with (input x 0), the result is 0.50000000 — σ(x). Computed from the inputs on this page with the formula below — change any figure and every result updates.
Quick reference
| Input x | σ(x) | Odds p/(1 − p) = e^x |
|---|---|---|
| -4 | 0.017986 | 0.018316 |
| -2 | 0.119203 | 0.135335 |
| -1 | 0.268941 | 0.367879 |
| 0 | 0.5 | 1 |
| 1 | 0.731059 | 2.718282 |
| 2 | 0.880797 | 7.389056 |
| 4 | 0.982014 | 54.59815 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
What input gives σ(x) = 0.75?
The logit of 0.75: ln(0.75/0.25) = ln 3 ≈ 1.0986. In general x = ln(p/(1−p)).
How does the Sigmoid Calculator work?
Evaluates the logistic sigmoid σ(x) = 1/(1 + e^−x), squashing any real input into a probability-like value between 0 and 1. Input x → σ(x). The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Sigmoid Calculator need?
Input x → σ(x). Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Sigmoid Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.