Runge-Kutta Method Calculator (RK4)

Solve y′ = f(x, y) with the classical fourth-order Runge-Kutta method step by step, with a table of every step.

Results

Enter your details and click Calculate to see your results.
About This Calculator

k₁ = f(x, y), k₂ = f(x + h/2, y + hk₁/2), k₃ = f(x + h/2, y + hk₂/2), k₄ = f(x + h, y + hk₃); y += h(k₁ + 2k₂ + 2k₃ + k₄)/6. Error per unit length ∝ h⁴.

Example

Example: y′ = y, h = 0.1, 10 steps → y(1) = 2.7182797441352 (e = 2.718281828…).

Assumptions

Fixed step size.

Frequently Asked Questions

Why is RK4 popular?

It's simple and far more accurate than Euler for the same step size.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile