Skip to content
Omnikalc

Sigmoid function calculator: value, slope and midpoint of an S-curve

Enter x, the steepness, the midpoint and the maximum to get the logistic sigmoid value, its slope and the x values at 10% and 90% of the maximum.

Updated on
Your inputs

Value out of range

Value out of range

Value out of range

Value out of range

Results

Sigmoid value f(x)

0.9047

Slope at x (derivative)
0.1294
Share of the maximum reached
90.5%
x at 10% of the maximum
-0.96
x at 90% of the maximum
1.96

Many processes start slowly, speed up and then level off, from the spread of a product to the response of a drug. The sigmoid function describes that S-shaped curve. This sigmoid function calculator takes x, the steepness, the midpoint and the maximum to give the value, the slope, the share of the maximum and the x values at 10% and 90%.

How the calculation works

  • Sigmoid f(x) = L ÷ (1 + e^(−k(x − x₀))). It rises from 0 to the maximum L along an S-shaped curve.
  • Midpoint x₀ is the value of x at which the function reaches half of L. Steepness k sets how quickly it moves from low to high.
  • Slope f′(x) = k · f(x) · (1 − f(x) ÷ L). It is largest at the midpoint, where it equals k × L ÷ 4.
  • The function goes from 10% to 90% of L between x₀ − ln 9 ÷ k and x₀ + ln 9 ÷ k, a width of about 4.39 ÷ k.

Example

Take the standard logistic function with L = 1, k = 1.5, x₀ = 0.5 and x = 2. The exponent is −1.5 × (2 − 0.5) = −2.25, and e^−2.25 = 0.1054. The value is 1 ÷ 1.1054 = 0.9047, the slope is 1.5 × 0.9047 × 0.0953 = 0.1293, and the curve has reached 90.5% of its maximum. It passes 10% at x = −0.96 and 90% at x = 1.96.

Why it matters

Students, analysts and engineers use the logistic curve to model growth that has a limit, to turn scores into probabilities and to fit dose-response data. Having the slope and the 10 to 90% range gives a feel for how sharp the transition is.

Good to know

The calculator uses the standard logistic form with a positive steepness. Real data may follow another S-shaped curve, such as the Gompertz or the cumulative normal distribution, and fitting a model to data needs more than a single evaluation. Very large values of k times x − x₀ are limited by the precision of the computer, which gives 0 or L for extreme inputs. Use the values as a guide to a model and not as a forecast.

The logistic growth calculator applies the curve to populations, the exponential growth calculator covers the unlimited case and the probability calculator links the curve to chance.

Frequently asked questions

What is a sigmoid function?

A sigmoid is a smooth S-shaped curve that rises from a lower plateau to an upper one. The most common is the logistic function 1 ÷ (1 + e^−x), which maps any real number to a value between 0 and 1. It is used in statistics, biology, economics and neural networks.

What do the parameters do?

The maximum L sets the upper plateau, the midpoint x₀ moves the curve left or right, and the steepness k stretches it. A large k gives a sharp step, and a small k a slow, gentle change. A negative k would flip the curve into a falling S, which this calculator does not accept.

How is the sigmoid used in machine learning?

It turns a score into a probability between 0 and 1 in logistic regression, and it was long used as an activation function in neural networks. Its slope is small for large positive or negative inputs, which can slow learning, so many networks now use other activation functions in the hidden layers.

How does it relate to the tanh function?

The hyperbolic tangent is a rescaled sigmoid: tanh(x) = 2 × σ(2x) − 1, which goes from −1 to 1. Both have the same shape, and the choice depends on whether the output should be centered on zero.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.