Elastic Collision Calculator for Momentum and Kinetic Energy

JJ Ben-Joseph headshot JJ Ben-Joseph

What this elastic collision calculator shows in one dimension

This elastic collision calculator models two blocks or carts moving along a straight track, then applies the textbook 1D elastic-collision equations to show how each mass and starting velocity changes the outcome. Because the interaction is perfectly elastic, the total momentum and total kinetic energy should stay the same before and after impact, and the canvas gives you a visual cue for which object rebounds, which one coasts through, and how strongly the mass ratio shapes the result. It is especially helpful when you want to compare a balanced pair of carts with a very heavy-and-very-light pair, since the same incoming speeds can lead to very different post-collision motion.

How to use the elastic collision calculator

  1. Enter m₁, v₁, m₂, and v₂ (SI units: kg and m/s), then check that the two starting speeds point the way you expect before launching the animation.
  2. Choose the time step Δt (smaller = smoother and usually more accurate; larger = faster but more likely to skip over a very brief impact, especially when the bodies are moving fast or just barely meet).
  3. Press Play to start the elastic-collision animation; use Pause and Reset whenever you want to stop, inspect the current state, or restart from the initial spacing.
  4. Use CSV to download the recorded time series of positions, velocities, and kinetic energies as a comma-separated file you can inspect in a spreadsheet or plotting tool.

Inputs, sign convention, and collision assumptions

This elastic-collision model assumes two rigid bodies moving on a frictionless line with no outside pushes, so the only changes in motion come from the impact itself. The calculator does not try to model rotation, bending, sound, or heat loss; instead, it focuses on the signed velocity change that comes from a perfectly elastic rebound. That makes it a good fit for textbook momentum problems, quick classroom demos, and any situation where you want the straight-line case without extra complications.

Governing formulas for this elastic collision calculator

Conservation of momentum in this elastic-collision calculator:

Formula: m_1 v_1 + m_2 v_2 = m_1 v_1^′ + m_2 v_2^′

m1v1 + m2v2 = m1v1 + m2v2

Conservation of kinetic energy in the same elastic-collision setup:

Formula: 1 / 2 m_1 v_1^2 + 1 / 2 m_2 v_2^2 = 1 / 2 m_1 v_1^′^2 + 1 / 2 m_2 v_2^′^2

12m1v12 + 12m2v22 = 12m1v12 + 12m2v22

Solving those two equations yields the closed-form post-collision velocities that the animation uses:

Interpreting the elastic-collision results

For each block, kinetic energy is still computed as KEᵢ = ½·mᵢ·vᵢ². In a perfectly elastic collision, the total momentum and total kinetic energy should match before and after impact, aside from tiny drift caused by the finite time step and discrete collision handling. If you notice a larger drift, reduce Δt and check that the bodies are actually moving toward each other. The readout is most informative when you compare the pre-impact and post-impact values rather than looking at either block in isolation, because the pair as a whole is what obeys the conservation laws.

Worked example: equal masses swapping speeds

Using the default values shown on this elastic-collision calculator: m₁ = 1 kg, v₁ = 2 m/s, m₂ = 1 kg, v₂ = −1 m/s.

Because the masses are equal, the two blocks exchange velocities:

Check momentum: initial p = 1·2 + 1·(−1) = 1; final p = 1·(−1) + 1·2 = 1. Check energy: initial KE = ½·1·2² + ½·1·(−1)² = 2 + 0.5 = 2.5 J; final KE = ½·1·(−1)² + ½·1·2² = 0.5 + 2 = 2.5 J. This is a useful sanity check because equal masses make the algebra simple enough to verify by eye, and the swap of velocities is exactly what the formula predicts when the two carts have the same mass.

Quick comparison: elastic collision calculator vs. inelastic collisions

Collision type Momentum conserved? Kinetic energy conserved? Typical outcome (1D)
Perfectly elastic Yes Yes Objects bounce; speeds adjust to conserve both laws
Inelastic (not sticking) Yes (if isolated) No Some kinetic energy becomes heat/sound/deformation
Perfectly inelastic (sticking) Yes (if isolated) No (maximum loss) Objects leave together with a shared velocity

This elastic collision calculator is specifically built for the perfectly elastic row of the table, but comparing it with the inelastic cases makes the role of energy conservation easier to see. In an inelastic collision, momentum still survives if no outside forces act, yet the final speeds are smaller because some of the initial kinetic energy ends up elsewhere. That contrast is one of the fastest ways to explain why elastic-collision problems are so useful in physics classes.

Numerical scheme for the elastic-collision animation (why Δt matters)

The animation advances time in increments of Δt. Between collisions, each block moves at constant velocity, so positions are updated using a simple step:

xᵢ(t + Δt) = xᵢ(t) + vᵢ·Δt

When the blocks overlap or their edges cross between steps, the calculator estimates the collision moment, updates the velocities to v′₁ and v′₂, and then finishes the rest of the step with those new values. Smaller Δt usually reduces visible jitter and improves the energy bookkeeping, but it also increases the number of simulation steps. In practical use, the right step size is the one that keeps the impact visible without making the motion so coarse that you miss the moment when the bodies touch. If the setup is slow and simple, a larger step may be fine; if the carts approach each other quickly, a smaller step is worth the extra work.

Elastic-collision assumptions & limitations

Inputs
Enter the two masses and starting velocities, then press Play.
Elastic-collision summary will appear here.

Block 1 kinetic energy

Block 2 kinetic energy

🎮 Elastic-Collision Block Buster Mini-Game

The elastic-collision mini-game is a separate visual toy that reuses the same momentum idea in a more playful setting. It is not another calculator view; instead, it lets you launch a ball at blocks with different masses so you can see why a light target is easier to fling and a heavier target sends the ball back with less speed change. If you want to build intuition before returning to the calculator, the mini-game is a quick way to connect the equations to what bouncing looks like on screen.

Elastic-Collision Block Buster

Launch the ball to clear blocks with elastic-collision physics.

Each block has a different mass, so the same hit can send one block flying and barely nudge another.

Click to Play

Mini-game complete!

0
Best: 0
Notice how the same launch speed produces different rebounds depending on block mass. That is the same mass-ratio logic used by the calculator above, only dressed up as a game: a light block usually reverses the ball more dramatically, while a heavy block absorbs less of the ball's speed change. Watching the score and combo counter rise is a fun extra, but the physics takeaway is the important part.