Sigmoid Activation Function Calculator

Sigmoid Function

σ(x) = 1 / (1 + e-x)
0.500000
Range: (0, 1)
0.250000
σ'(x) = σ(x) × (1 - σ(x))

Visualization

Sigmoid
Derivative

Formulas

Sigmoid Function
f(x) = 1 / (1 + e^(-x))
Derivative
f'(x) = f(x) * (1 - f(x))

Properties

  • • Output range: (0, 1)
  • • Smooth and differentiable everywhere
  • • Centered at x=0, output=0.5
  • • Maximum derivative at x=0 (0.25)

Use Cases

  • • Binary classification output layer
  • • Probability estimation
  • • Gate mechanisms (LSTM, GRU)
  • • Logistic regression

What is the sigmoid activation function?

The sigmoid function, also called the logistic function, is a mathematical function defined as σ(x) = 1 / (1 + e^(-x)). It maps any real-valued number to a value between 0 and 1, producing an S-shaped curve. The sigmoid function is widely used in machine learning as an activation function in neural networks, particularly in the output layer of binary classification models where the output represents a probability. Its derivative is σ'(x) = σ(x) × (1 − σ(x)), which has a maximum value of 0.25 at x = 0. While largely replaced by ReLU in hidden layers due to the vanishing gradient problem, sigmoid remains essential in logistic regression, LSTM gate mechanisms, and attention layers in transformers.

Built with care by Alpiaal