Skip to content
OneKitly

Four Evaluations Instead of One, and the Error Drops Sixteen Thousandfold

Published 11/25/2026 · 3 min read · Everyday calculators

Lena Hoffmann

Lena Hoffmann — Science & education writer at OneKitly

Mathematics · Physics

Checked against 2 sources

View profile →
In short

Both methods step forward through the same interval; they differ in how carefully they look before stepping. Euler uses the slope at the start of the step and nothing else, so with a step of 0.1 it reaches 2.5937 where the true answer is 2.718282 — 4.6% low. Runge-Kutta samples the slope four times inside each step and combines them with weights 1, 2, 2, 1 over six, reaching 2.7182797. Give Euler four times as many steps, so both do the same number of evaluations, and it is still off by 0.033 against Runge-Kutta's 0.0000021.

Advertisement

Solving y′ = y from 0 to 1: Euler's method lands 4.6% short of e. Runge-Kutta, at the same cost in work, is wrong in the sixth decimal place.

Order is the exponent on the step size

Euler is a first-order method: its error is proportional to the step, so halving the step halves the error. Runge-Kutta is fourth order, and its error is proportional to the step to the fourth power, so halving the step divides the error by sixteen. That single exponent explains everything else — why the fourth-order method wins despite doing four times the work per step, and why on a problem needing eight digits Euler would need a step of about six thousandths of what Runge-Kutta gets away with.

Where a fixed step is the wrong idea

Both methods here march with a constant step, which wastes effort on the flat parts of a solution and loses accuracy on the steep ones. Production solvers estimate the local error at each step and shrink or grow the step to keep it inside a tolerance, and stiff problems — where one component decays a million times faster than another — need implicit methods entirely, because any explicit method is forced to a step small enough for the fastest component. A fixed-step fourth-order solver is the right tool for smooth problems and a trap for the rest.

Approximating e by solving y′ = y
Step sizeEuler's errorRunge-Kutta's error
0.10.1250.0000021
0.050.0650.00000014
0.0250.0330.0000000087
Halving the step divides the error byabout 2about 16
Runge-Kutta (RK4) Method CalculatorShows the four stage slopes k₁ to k₄ at every step and how the 1-2-2-1 weighting cancels the error through h⁴. Halve the step and the error drops about sixteenfold — the measured order is printed so you can watch it approach 4.Try the tool →
Advertisement

Frequently asked questions

Why the weights 1, 2, 2, 1?
Because they make the method's Taylor expansion agree with the true solution's up to the fourth term, and that agreement is what fourth order means. The two middle slopes are taken at the midpoint of the step and counted double, which is the same idea as Simpson's rule for integration — sample the ends once and the middle twice. The coefficients are not tuned by experiment; they are the unique solution of the equations that cancel the error terms.
Can the step be made arbitrarily small?
No, and this is where numerical analysis stops being about mathematics. Every step adds a rounding error of the order of machine precision, and halving the step doubles the number of steps. Below a certain size the accumulated rounding grows faster than the truncation error shrinks, and the total error starts rising again. In double precision that floor sits far below anything a fourth-order method needs, which is another reason to prefer order over step count.

Articles you may find interesting

All guides →

Related tools

Sources

Spotted a mistake in this article?