Logit Calculator

Logit (log-odds)1.386
Odds4.000
Log10 odds0.602
How this was calculated
  1. Turn the probability into odds: 0.8 / (1 - 0.8) = 4.000 - the odds in favour.
  2. Take the natural logarithm of the odds: ln(4.000) = 1.386. That log-odds is the logit - the scale on which logistic regression is linear in its inputs.
  3. A probability of 0.5 maps to a logit of exactly 0, and the scale is symmetric: the logit of 1 - p is always the negative of the logit of p, which is why effects read as shifts rather than ratios.

The logit of a probability p is the natural logarithm of its odds: ln(p / (1 - p)). This logit calculator converts any probability you enter into its logit value on that scale. A probability of 0.5 maps to a logit of exactly 0, the neutral point of the scale. A probability of 0.8 is odds of 4.000 to one, and its logit is 1.386. The scale is symmetric: the logit of 0.25 is -1.099, the negative of the logit of 0.75.

The logit is the accepted standard for this kind of calculation because it is the link that lets logistic regression model the logit as a linear function of the inputs, which is why coefficients read as log-odds changes. The formula is simple, but small input slips are easy to make, so this page shows the formula, step-by-step workings, worked examples and sources. You can follow each stage from probability to odds to natural logarithm, check the numbers against the examples, and see where the result comes from rather than taking a black-box answer on trust.

Worked examples

Likely event

A probability of 0.8 has a logit of 1.386 - odds of four to one in favour. (0.8 0-1)

Logit (log-odds)1.386
Odds4.000
Log10 odds0.602

Coin flip

A probability of 0.5 has a logit of 0.000, the neutral point of the scale. (0.5 0-1)

Logit (log-odds)0.000
Odds1.000
Log10 odds0.000

Unlikely event

A probability of 0.25 has a logit of -1.099, the mirror image of 0.75. (0.25 0-1)

Logit (log-odds)-1.099
Odds0.333
Log10 odds-0.477

From probability to log-odds

A probability lives on a short leash. It can never drop below 0 or rise above 1, so a model that predicts probabilities directly is squeezed into that narrow range. Odds loosen the constraint: instead of comparing an event to the whole, they compare it to its complement, p / (1 - p). A probability of 0.8 becomes odds of 4.000 to one, and as the probability creeps toward 1, the odds stretch toward infinity. The upper bound is gone, but the scale is still lopsided — small probabilities bunch up near zero while large ones fan out.

The logarithm fixes that lopsidedness. The logit takes the natural logarithm of the odds, ln(p / (1 - p)), and in doing so it makes the scale symmetric about a single neutral point. A probability of 0.5 maps to a logit of exactly 0, the midpoint where the event and its complement are equally likely. Move equally far in either direction and you get mirror-image results: the logit of 0.25 is -1.099, the negative of the logit of 0.75. A probability of 0.8, with its odds of 4.000 to one, lands at a logit of 1.386 — the same distance above zero as 0.2 sits below it. That symmetry is what a logit calculator is for: type in a probability and read the log-odds directly, without hand-running the logarithm.

So the three-step motivation runs like this. Probabilities are bounded by 0 and 1, which makes them awkward to model on an unbounded scale. Odds remove the upper bound but keep the scale skewed. The log removes the skew, producing a number that runs from negative infinity to positive infinity and treats gains and losses in probability evenhandedly.

This is exactly the transformation logistic regression relies on. The model treats the logit as a linear function of the inputs, so a coefficient describes how much the log-odds shift when that input changes by one unit. Reading coefficients as log-odds changes only makes sense because the logit scale is unbounded and symmetric; on the raw probability scale, the same shift would mean different things depending on where you started. When you use a logit calculator to convert a probability into log-odds, you are putting a number onto the scale that statistical models actually work in.

  • Probability 0.5 → logit 0 (the neutral point)
  • Probability 0.8 → odds 4.000 to one → logit 1.386
  • Probability 0.25 → logit -1.099, the negative of the logit of 0.75
The logit of a probability p is ln(p / (1 - p)): odds first, then the natural logarithm.

How the logit is calculated

To find the logit of a probability, you take two steps: convert the probability to odds, then take the natural logarithm of those odds. The formula is ln(p / (1 - p)). The denominator, 1 - p, is the probability of the complementary outcome, so the fraction p / (1 - p) is simply the odds in favor of the event. A logit calculator runs these two steps in order, but doing them by hand makes the scale much easier to read.

Start with a probability of 0.8. The complement is 1 - 0.8 = 0.2, so the odds are 0.8 / 0.2 = 4.000 to one. Taking the natural log of 4.000 gives 1.386, which is the logit of 0.8. Now try 0.5: the complement is also 0.5, so the odds are 1.000, and the natural log of 1 is exactly 0. That makes 0.5 the neutral point of the scale, where the odds are even and the logit sits at zero. Finally, take 0.25. The complement is 0.75, so the odds are 0.25 / 0.75 = 0.333. The natural log of 0.333 is -1.099, a negative value, because a probability below 0.5 means the odds are less than one.

The scale is symmetric around that zero point. The logit of 0.25 is -1.099, which is exactly the negative of the logit of 0.75. Probabilities above 0.5 produce positive logits, probabilities below 0.5 produce negative logits, and equal probabilities on either side of 0.5 land the same distance from zero in opposite directions. This symmetry is why the logit is often described as an unbounded scale that stretches from negative infinity to positive infinity while the probability itself stays between 0 and 1.

The logit also has a direct use in modeling. Logistic regression models the logit as a linear function of the inputs, which is why coefficients read as log-odds changes. In other words, the model works on the logit scale, where a one-unit change in an input shifts the log-odds by the coefficient's value, rather than working directly on the probability itself.

  • p = 0.8: odds = 4.000, logit = 1.386
  • p = 0.5: odds = 1.000, logit = 0 (the neutral point)
  • p = 0.25: odds = 0.333, logit = -1.099
Remember the order: odds first, then the natural log. The odds for p = 0.25 are 0.333, and ln(0.333) = -1.099 — the negative of the logit of 0.75.

The inverse: from logit back to probability

Every logit value has a matching probability, and getting back to that probability is the job of the logistic function, also called the sigmoid: 1 / (1 + e^-x). Where the logit takes a probability and returns a number on an unbounded scale, the sigmoid takes that number and squeezes it back into the range between 0 and 1. Run a probability through the logit and then through the sigmoid and you land exactly where you started. A logit calculator that handles both directions lets you move freely between the two representations without doing the exponentiation by hand.

The round trip is easiest to see with a concrete value. A probability of 0.8 corresponds to odds of 4.000 to one, and its logit is 1.386. Feed 1.386 into the sigmoid and you recover 0.8. The neutral point behaves just as cleanly: a probability of 0.5 maps to a logit of exactly 0, because even odds are 1 to 1 and the natural logarithm of 1 is zero. That zero is the center of the scale, the spot where neither outcome is favored.

The scale is symmetric around that center. The logit of 0.25 is -1.099, which is exactly the negative of the logit of 0.75. Distances from zero therefore mean the same thing in either direction: a logit of +1.386 and a logit of -1.386 describe probabilities that are mirror images, 0.8 and 0.2. This symmetry is why the logit is often described as a signed measure of evidence, with the sign telling you which side of even odds you are on and the magnitude telling you how far.

This pair of functions sits inside every logistic regression and every neural-network classifier that ends in a sigmoid output. Logistic regression models the logit as a linear function of the inputs, which is why its coefficients read as log-odds changes: each coefficient describes how the logit shifts when its input increases by one unit, and the sigmoid then converts that shifted logit into a probability. Neural-network classifiers use the same final step, turning an unbounded score into a probability the same way.

In practice you will usually start with a probability and want the logit, but the reverse direction matters whenever you have a model output, a coefficient, or a score on the log-odds scale and need to explain it as a likelihood. A logit calculator handles both directions, so you can enter whichever value you have and read off the other.

The sigmoid 1 / (1 + e^-x) is the exact inverse of the logit: apply one and then the other and you return to your starting value. A logit of 0 always means a probability of 0.5.

Reading logistic regression output

A logistic regression coefficient is a change on the logit scale, not on the probability scale. If a coefficient is 0.7, a one-unit increase in that input adds 0.7 to the logit. Because the logit is a logarithm, adding 0.7 there multiplies the odds by about 2 (e^0.7 is roughly 2.01). That multiplication holds no matter where you start: the odds double whether the starting probability is 0.10, 0.50 or 0.80. This is the single most useful habit to build when you use a logit calculator to check a model's output — convert the coefficient to an odds ratio first, then think about what doubling means at the probability you actually care about.

The contrast with probabilities is easiest to see with a concrete starting point. A probability of 0.5 maps to a logit of exactly 0 — the neutral point of the scale. Add 0.7 and you land at a logit of 0.7, which corresponds to odds of about 2 to 1 and a probability near 0.67. So the probability moved by roughly 0.17, not by 0.7. Start instead at a probability of 0.8, which is odds of 4.000 to one and a logit of 1.386. Add the same 0.7 and the logit becomes 2.086; the odds double to about 8 to 1, and the probability rises only to roughly 0.89. The logit change was identical in both cases, but the probability change was not, because the scale is compressed near its limits.

That compression is why the scale is symmetric. The logit of 0.25 is -1.099, the negative of the logit of 0.75. A coefficient of 0.7 that doubles the odds of a low-probability event adds a small amount of probability; the same coefficient applied to an event already likely adds even less. Near the middle of the scale, where the logit passes through 0, a given logit change moves the probability the most. Reading a coefficient as "plus 0.7 probability" would therefore be wrong at every starting point except by coincidence, and badly wrong at the extremes.

This is also why coefficients read as log-odds changes at all. Logistic regression models the logit as a linear function of the inputs, so each coefficient is the slope of that straight line on the logit scale. The linearity lives on the logit scale, not on the probability scale, so a constant coefficient produces constant odds ratios rather than constant probability differences. When you read output, translate a coefficient into an odds ratio, then translate that odds ratio into a probability shift at the baseline you are actually interested in — the same odds ratio can mean very different things at different baselines.

A coefficient of 0.7 adds 0.7 to the logit and roughly doubles the odds — at any starting probability. It never means "add 0.7 to the probability."

FAQs

What is a logit?

A logit is the natural logarithm of the odds of a probability, written as ln(p / (1 - p)). It is the link function used in logistic regression, connecting a probability value to a scale a linear model can work with. In short, the logit turns a probability into log-odds.

How do you calculate the logit of 0.8?

First convert the probability to odds. For 0.8, the odds are 0.8 / 0.2 = 4.000. Then take the natural logarithm of those odds. The natural log of 4 is 1.386, so the logit of 0.8 is 1.386.

What is the logit of 0.5?

The logit of 0.5 is exactly 0. At a probability of 0.5, the odds are 1.000, and the natural logarithm of 1 is zero. This point sits at the center of the logit scale, with positive logits above it and negative logits below it.

Why use log-odds instead of probability?

Log-odds are unbounded and symmetric, unlike probabilities, which are confined between 0 and 1. Because log-odds have no upper or lower limit, a linear model can predict them freely without ever producing impossible probabilities. That makes log-odds a practical scale for logistic regression.

How do I convert a logit back to a probability?

Use the logistic function, which is the inverse of the logit. The formula is p = 1 / (1 + e^-logit). Plug in the logit value, raise e to the negative of that value, add 1, and take the reciprocal. The result is the probability corresponding to that logit.

What does a negative logit mean?

A negative logit means the odds are below 1, so the event is less likely than not. For example, a logit of -1.099 corresponds to a probability of 0.25. Negative logits fall below the center of the scale, while positive logits indicate odds above 1.

Sources

Related calculators

Logistic Growth Calculator
S-curve growth toward a carrying capacity — population, adoption or market size at any point in time.
Odds Ratio Calculator
Odds ratio and relative risk from a 2x2 table (exposed/unexposed × outcome/no outcome), with the 95% confidence interval for the odds ratio by the log method.
Probability Calculator
Two independent events, every combination: both happen, at least one, exactly one, or neither — from the two individual probabilities.