Momentum and collision calculator (elastic and inelastic)
Momentum and collision calculator: final velocities, total momentum and kinetic energy lost in an elastic, inelastic or partly elastic head-on collision.
In a collision between two bodies, the total momentum m₁u₁ + m₂u₂ is the same before and after. The coefficient of restitution e, the ratio of separation speed to approach speed, supplies the second equation: e = 1 is a perfectly elastic collision and e = 0 means the bodies stick together. The two equations give both final velocities, and comparing ½mv² before and after gives the kinetic energy lost.
The default, a 2 kg body at 3 m/s meeting a 1 kg body moving at −1 m/s elastically, sends them off at 0.333 m/s and 4.333 m/s. A 1,000 kg car at 20 m/s that locks onto a parked 1,500 kg car moves off at 8 m/s, and 60% of the kinetic energy goes into deformation, heat and sound.
Motion is along one line: choose a positive direction and give velocities the other way a minus sign. External forces such as road friction are taken as negligible during the impact.
Momentum formula: p = mv
Momentum is mass times velocity: p = mv, in kg·m/s. Velocity has a direction, so momentum does too: a 2 kg cart at 3 m/s has 6 kg·m/s, and a 1 kg cart moving the other way at −1 m/s has −1 kg·m/s. Together they carry 5 kg·m/s.
Choose one direction as positive and give every velocity the other way a minus sign. OpenStax's linear momentum lesson defines momentum as this vector quantity.
Conservation of momentum in a collision
When no outside force acts during the impact, total momentum is the same before and after: m₁u₁ + m₂u₂ = m₁v₁ + m₂v₂. That is one equation with two unknowns, the final velocities v₁ and v₂, so a second equation is needed.
The coefficient of restitution e supplies it: v₂ − v₁ = e(u₁ − u₂). The bodies separate at e times their approach speed, from e = 1 for an elastic collision down to e = 0 when they stick together.
Solving the pair gives:
v₁ = [m₁u₁ + m₂u₂ + m₂e(u₂ − u₁)] ÷ (m₁ + m₂)
v₂ = [m₁u₁ + m₂u₂ + m₁e(u₁ − u₂)] ÷ (m₁ + m₂)
Worked collisions
Masses are in kg, velocities in m/s, total momentum in kg·m/s and kinetic energy lost in joules.
Row 3: a 1,000 kg car at 20 m/s locks onto a parked 1,500 kg car, and both move off at 8 m/s.
Row 5: equal and opposite momenta cancel, so two carts that stick together stop dead.
Elastic collisions (e = 1)
An elastic collision conserves kinetic energy as well as momentum. With e = 1 the formulas become v₁ = [(m₁ − m₂)u₁ + 2m₂u₂] ÷ (m₁ + m₂) and v₂ = [2m₁u₁ + (m₂ − m₁)u₂] ÷ (m₁ + m₂).
Equal masses swap velocities, as in row 2 and in a Newton's cradle. A light body bounces back off a heavy one: 1 kg at 2 m/s striking 10 kg at rest rebounds at −18/11 ≈ −1.64 m/s, and the heavy body moves off at 4/11 ≈ 0.36 m/s.
The bodies stick and share one velocity, v = (m₁u₁ + m₂u₂) ÷ (m₁ + m₂). Momentum is conserved, but kinetic energy is not: the loss becomes deformation, heat and sound.
For the cars in row 3, kinetic energy falls from ½ × 1,000 × 20² = 200,000 J to ½ × 2,500 × 8² = 80,000 J. The 120,000 J difference is 60% of the original energy.
Coefficient of restitution between 0 and 1
Most real collisions fall between the two extremes. Row 4 repeats row 1 with e = 0.5: the bodies leave at 1 m/s and 3 m/s, still carrying 5 kg·m/s, and 4 J of the 9.5 J of kinetic energy is lost.
For a ball dropped on a rigid floor, e = √(bounce height ÷ drop height). A ball dropped from 1 m that bounces to 0.64 m has e = √0.64 = 0.8.
Impulse and impact force
Impulse is a body's change in momentum, J = m(v − u), in N·s. In row 1, body 2 goes from −1 m/s to 13/3 m/s, so it receives 1 × (13/3 + 1) = 16/3 ≈ 5.33 N·s; body 1 receives the same impulse in the opposite direction.
Average force is impulse divided by contact time. If that impact lasted 0.01 s, the average force on each body would be about 533 N. Spreading the same impulse over a longer time, as crumple zones and airbags do, lowers the force.
Common mistakes
Adding speeds instead of signed velocities. In row 1 the total momentum is 6 − 1 = 5 kg·m/s, not 7.
Expecting kinetic energy to be conserved. Every collision conserves momentum when no outside force acts, but only elastic ones keep kinetic energy.
Treating impulse as force. Impulse in N·s becomes a force only once you know how long the contact lasted.
Forgetting outside forces. Conservation applies over the brief impact; friction and braking afterward change the momentum.
Input formats and units
Motion is head-on along one line, with body 1 on the left and positive velocities pointing right.
Body 1 must be catching up with body 2, so u₁ must be greater than u₂. Two bodies moving left can still collide.
Masses must be positive (kg, g, t or lb), and velocities can be entered in m/s, km/h or mph.
e runs from 0 to 1; choosing elastic or perfectly inelastic fixes it at 1 or 0.
What is the difference between elastic and inelastic collisions?
Both conserve momentum; only an elastic collision also conserves kinetic energy. In a perfectly inelastic collision the bodies stick together and lose the most kinetic energy that momentum conservation allows. When a 1,000 kg car at 20 m/s locks onto a parked 1,500 kg car, momentum stays at 20,000 kg·m/s while kinetic energy falls from 200 kJ to 80 kJ. Most real collisions fall between the two extremes.
What is the coefficient of restitution?
It is the relative speed after a collision divided by the relative speed before, e = (v₂ − v₁) ÷ (u₁ − u₂), a number from 0 to 1. For a ball dropped onto a rigid floor, e = √(bounce height ÷ drop height). The ITF requires a type 2 tennis ball dropped from 254 cm onto concrete to rebound 135–147 cm, which corresponds to e between 0.73 and 0.76.
How do you calculate momentum?
Momentum is mass times velocity, p = mv, measured in kg·m/s. It has a direction, so velocities in opposite directions carry opposite signs. A 1,000 kg car at 20 m/s has 20,000 kg·m/s. With no outside forces the total is the same before and after a collision, which is why two 2 kg carts meeting head-on at 5 m/s and sticking together stop dead.
What happens when two equal masses collide elastically?
They swap velocities. A 1 kg ball at 2 m/s hitting an identical ball at rest stops, and the second ball leaves at 2 m/s with all the kinetic energy; a Newton's cradle shows the same effect. With unequal masses the lighter body leaves faster: a 10 kg ball at 1 m/s sends a 1 kg ball off at 1.82 m/s and slows to 0.82 m/s.
This calculator includes 5 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.
Put this calculator on your site
Paste this where you want the calculator to appear. It is free to use, it stays in step with corrections made here, and the credit line below it links back so your readers can find the full version.