Gradient Descent Step Calculator

Compute the next parameter value after one gradient descent step and visualize convergence on a loss curve.

Parameters

Starting position on the loss curve.

Controls step size. Try values from 0.001 to 1.0.

Override auto-computed gradient

Leave unchecked to use the parabolic curve gradient 2θ.

1 15 40

Next Step Result

θ (current)
Gradient ∇L(θ)
Step size α×|∇L|
θ_new = θ − α∇L

Formula:

θ_new = θ − α × ∇L

Convergence on L(θ) = θ²

Each dot is one gradient descent step. Minimum is at θ = 0.

Summary

Compute the next parameter value after one gradient descent step and visualize convergence on a loss curve.

How it works

  1. Enter your current parameter value (θ), the learning rate (α), and the gradient (∇L) at that point.
  2. The tool applies the update rule: θ_new = θ − α × ∇L to compute the next parameter.
  3. The step size (how far the parameter moves) is shown as α × |∇L|.
  4. A loss curve chart plots multiple gradient descent steps from your starting point so you can see convergence behavior.
  5. Adjust the learning rate to observe overshooting (too large) versus slow convergence (too small).

Use cases

  • Understand the gradient descent update rule while studying machine learning fundamentals.
  • Debug training instability by checking step sizes for given gradients and learning rates.
  • Demonstrate how learning rate affects convergence speed in lectures or tutorials.
  • Quickly verify manual gradient descent calculations during homework or research.
  • Explore the difference between large and small gradients on identical learning rates.
  • Visualize why a learning rate that is too high causes overshooting the minimum.

Frequently Asked Questions

Last updated: 2026-07-22 · Reviewed by Nham Vu