Simple Harmonic Motion (SHM) simulator — with steps and energy

Analyse spring-mass simple harmonic motion with analytic, Euler-Cromer, or RK4 solvers, keep a How it's calculated log beside the results, and export shareable charts, tables, and CSV files.

Ideal for physics and calculus lessons: the tool derives amplitude/phase from x₀ and v₀, locks omega and energy summaries next to the results, and preserves classroom inputs in the share URL.

Other languages: ja | en | es | zh-CN
Spring-mass parameters

Keyboard shortcuts: Ctrl+Enter runs the solver, Ctrl+S downloads the CSV.

Result summary

How it's calculated

    FAQ

    Which equations does the SHM simulator use?

    The solver computes omega = sqrt(k/m) for the spring-mass system, reports the period T = 2pi/omega, and evaluates x(t), v(t), a(t), and the energy terms K = 0.5 m v^2 and U = 0.5 k x^2. The analytic, Euler-Cromer, and RK4 solvers all log their steps in the How it's calculated list.

    When should I choose Euler-Cromer or RK4?

    Euler-Cromer is fast and keeps energy bounded for larger time steps, making it useful for exploratory lessons. RK4 is higher order and matches the analytic curve to within the required 1e-3 tolerance while still emitting the same time series table and CSV export.