Euler's Method Calculator

Step through a first order differential equation numerically.

Math and PercentUpdated 2026-11-202 min read
Euler's Method Calculator
Final y
...
Final x...
Step size...

What it does

Euler's method is the most basic numerical procedure for solving a first order ordinary differential equation with a known starting value. It uses the slope at the current point to estimate the value one step ahead, then repeats.

University of Cape Town computational methods notes derive the update from a Taylor expansion, keeping only the first order term. The result is y next approximately equal to y plus the step size times the right hand side of the equation.

University of Kiel numerical mathematics notes describe the same procedure as linear extrapolation using the local slope, which is always available in an initial value problem.

This tool offers three simple equations, an initial condition, a step size and a step count. It reports the final x and y values.

Euler's method has first order accuracy. For stiff equations or high precision work, more advanced methods are preferred.

How to use

  1. Choose one of the three built in differential equations.
  2. Enter the initial x and y values.
  3. Enter a positive step size.
  4. Enter the number of steps, up to 1000.
  5. Read the final y value in the main result.
  6. Reduce the step size and compare results to gauge accuracy.

Formula

y(n+1) = y(n) + h f(x(n), y(n)), x(n+1) = x(n) + h.
f(x,y)
Right hand side of the differential equation dy/dx = f(x,y).
h
Step size.
y(n)
Current approximation to the solution.
x(n)
Current value of the independent variable.

The engine evaluates the chosen right hand side at the current point before each update. It keeps the step size constant across all steps.

Worked example

Example: dy/dx = y

Initial values x = 0, y = 1, step size 0.1, 10 steps.

  1. The slope at the start is f(0, 1) = 1.
  2. The first step gives y = 1 + 0.1 x 1 = 1.1 at x = 0.1.
  3. The next slope is 1.1, giving y = 1.21 at x = 0.2.
  4. Each step multiplies the estimate by 1.1.
  5. After 10 steps, y is about 2.59374246 at x = 1.
  6. The exact solution is e, about 2.71828, so the error is noticeable with this step size.

Reference table

First Euler steps for dy/dx = y
Stepxy
00.01.0000
10.11.1000
20.21.2100
30.31.3310
101.02.5937

Limits

  • Only three built in equations are available.
  • The method has first order accuracy.
  • Stiff equations may need extremely small steps.
  • Results are shown to eight decimal places.

Common mistakes

  • Using a step size too large for the desired accuracy.
  • Assuming the final value is exact rather than approximate.
  • Confusing x and y in the initial condition fields.
  • Expecting the method to handle discontinuities well.
  • Comparing results from different step sizes without noting the change.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is the Euler update formula?

y next = y + h f(x, y).

What is y after one step for dy/dx = y, y(0)=1, h=0.1?

1.1.

How does accuracy change with step size?

Halving h usually roughly halves the error for Euler's method.

Questions

What is Euler's method?

A step by step numerical method for initial value problems.

Why is it useful?

It is simple and needs only the right hand side of the equation.

What is its order of accuracy?

First order.

Can I use my own equation?

Not on this page. Only the three built in options are available.

How do I check accuracy?

Run again with a smaller step and compare.

Is it used in professional simulations?

Rarely on its own. Higher order methods are usually preferred.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.