Canonical: https://toolipedia.app/numerical-ode-solver

# Numerical ODE Solver

Solve dy/dx = f(x, y) from an initial value with Euler, improved Euler or Runge-Kutta 4, with a step table, a chart and a comparison with a high-accuracy reference.

Breadcrumbs: Toolipedia > Online calculators > Maths and school calculators > Numerical ODE Solver

## About Numerical ODE Solver

Solve dy/dx = f(x, y) from an initial value step by step. Euler's method follows the slope at the start of each step, improved Euler (Heun) averages two slopes and the classic Runge-Kutta 4 combines four. For dy/dx = y with y(0) = 1, Euler with 10 steps reaches 2.5937424601 at x = 1, while the true answer is e = 2.71828. The page tabulates every step with its slopes, draws the solution, compares all three methods with a high-accuracy reference and reports each error.

## How to use Numerical ODE Solver
1. Choose the method and type dy/dx as a formula in x and y, for example x + y.
2. Enter the starting x and y, the end x and the number of steps.
3. Read the final value, the step table with the slopes, the chart and the comparison of methods.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
- Free to embed on your own website, with a ready-made code to copy.

## Also known as
- numerical ode solver
- euler method calculator
- runge kutta 4 calculator
- improved euler method calculator
- solve differential equation numerically
- ode solver step by step

## Frequently asked questions

### How many steps should I use?

More steps mean smaller errors. Euler's error shrinks in proportion to the step size, Heun's with its square and Runge-Kutta 4 with its fourth power, so RK4 with 20 steps often beats Euler with thousands.

### What does the reference value mean?

It is the same Runge-Kutta 4 method run with 50 times more steps, at least 2000 in all. It is a very accurate check but not an exact solution, so the errors shown are estimates.

### What if the solution blows up?

If y becomes infinite or undefined the page stops and says near which x it happened. The true solution may genuinely blow up there, as for dy/dx = y^2, or the step may be too large.

### Is Numerical ODE Solver free?

Yes. Numerical ODE Solver on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

### Can I put Numerical ODE Solver on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

## Related tools

More free tools that go well with Numerical ODE Solver:
- [Differential Equation Solver](https://toolipedia.app/differential-equation-solver)
- [Numerical Root Finder](https://toolipedia.app/numerical-root-finder)
- [3D rotation converter](https://toolipedia.app/3d-rotation-converter)
- [Inequality solver](https://toolipedia.app/inequality-solver)
- [Numerical Integration](https://toolipedia.app/numerical-integration)
