Bug-Rivet Paradox Calculator – Special Relativity

Explore length contraction and simultaneity in the Bug-Rivet Paradox. Calculate Lorentz factor, contracted lengths, time dilation, and relativistic kinetic energy.

Enter the rest lengths of the rivet and hole, the velocity as a fraction of the speed of light, and the physical dimensions to quantify the relativistic effects.

Bug-Rivet Paradox Calculator – Special Relativity
Explore length contraction and simultaneity in the Bug-Rivet Paradox. Calculate Lorentz factor, contracted lengths, time dilation, and relativistic kinetic energy.

About the Bug-Rivet Paradox

The Bug-Rivet Paradox is a thought experiment in special relativity that vividly illustrates the counterintuitive consequences of length contraction and the relativity of simultaneity. It was proposed as an analogy to the better-known pole-barn paradox, replacing the barn and pole with a bug sitting at the bottom of a hole and a rivet approaching at relativistic speed. The setup: imagine a rivet that is slightly longer than a hole when both are at rest. The rivet moves toward the hole at a velocity v that is a significant fraction of the speed of light c. Two observers — one in the rest frame of the hole and one traveling with the rivet — give seemingly contradictory accounts of what happens. From the hole's rest frame, the rivet undergoes Lorentz contraction. Its length appears shorter by the factor γ (the Lorentz factor): L_contracted = L₀ / γ, where γ = 1 / √(1 − v²/c²) and L₀ is the rivet's rest length. If the contracted length is less than the hole length, the rivet appears to fit through the hole — and the bug, sitting at the bottom, momentarily escapes being crushed. From the rivet's rest frame, it is the hole that appears contracted. The hole shrinks to L_hole / γ, which is even smaller than its rest length. From this perspective, the rivet is definitely longer than the contracted hole, and the bug should be crushed. The apparent contradiction — 'bug lives' vs. 'bug dies' — is resolved by the relativity of simultaneity. Whether the bug lives or dies is not actually paradoxical: both observers must agree on the physical outcome. The resolution is that the closing of the rivet's tip and its tail cannot be simultaneous in both frames. In the hole frame, the tip reaches the bottom when the tail has just entered the hole (rivet contracted, bug survives momentarily). In the rivet frame, the tip hits the bottom before the tail enters the hole, creating stresses that propagate at the speed of sound — but since information cannot travel faster than light, the details of the collision must be analyzed using relativistic mechanics, including the finite propagation speed of stress waves through the rivet's material. The key physical principles illustrated by the paradox include: (1) Lorentz contraction — γ = 1/√(1 − v²/c²) — the spatial compression of moving objects in the direction of motion; (2) time dilation — moving clocks run slow by the same factor γ; (3) relativistic momentum p = γmv; (4) total energy E = γmc² and kinetic energy K = (γ − 1)mc²; and (5) the relativity of simultaneity — events at different locations that are simultaneous in one frame are generally not simultaneous in another frame moving relative to the first. This calculator quantifies all the key relativistic effects: the Lorentz factor γ, the contracted rivet length as seen from the hole's frame, the time dilation factor, the rest mass of the rivet (calculated from its geometry and density), and the relativistic kinetic energy. These values help develop intuition for how dramatically relativistic effects scale with velocity — at 0.5c the effects are modest (~15% length contraction), but at 0.99c length contraction is ~86% and the kinetic energy is more than six times the rest-mass energy.

Bug-Rivet Paradox examples

Key scenarios showing how the Lorentz factor and length contraction change with velocity.

Scenario ParametersLorentz Factor (γ)Relativistic Effects
Rivet=0.10 m, Hole=0.08 m, v=0.8c, D=0.01 m, ρ=7850 kg/m³γ ≈ 1.667At 0.8c the rivet contracts to 0.060 m — well below the 0.08 m hole. In the hole frame the rivet fits; the paradox is fully apparent.
Rivet=0.15 m, Hole=0.10 m, v=0.95c, D=0.015 m, ρ=2700 kg/m³γ ≈ 3.203Extreme speed: the rivet contracts to 0.047 m, less than half its rest length. Kinetic energy far exceeds rest-mass energy.
Rivet=0.12 m, Hole=0.09 m, v=0.6c, D=0.012 m, ρ=11340 kg/m³γ = 1.25Moderate speed: contraction is 20%. The rivet contracts to 0.096 m, still longer than the 0.09 m hole at this speed.
Rivet=0.05 m, Hole=0.04 m, v=0.5c, D=0.008 m, ρ=7850 kg/m³γ ≈ 1.155At 0.5c contraction is about 13.4%. The rivet contracts to 0.043 m, which is still longer than the 0.04 m hole.

How to use the Bug-Rivet Paradox calculator

  1. Enter the rest length of the rivet and the rest length of the hole in metres. For the paradox to be interesting, the rivet should be slightly longer than the hole at rest.
  2. Enter the velocity as a decimal fraction of the speed of light c (e.g., enter 0.8 for 80% of c). Valid values are between 0 and 1 exclusive.
  3. Enter the rivet's diameter in metres and the material density in kg/m³ to compute the rest mass and kinetic energy of the rivet.
  4. Click 'Calculate'. The calculator shows the Lorentz factor γ, the contracted rivet length as seen from the hole's frame, the time dilation factor, rest mass, and relativistic kinetic energy.
  5. Adjust the velocity to explore how the relativistic effects scale. Notice how γ increases rapidly as v approaches c, and how both length contraction and kinetic energy become extreme above 0.9c.

Bug-Rivet Paradox FAQ

What is the Bug-Rivet Paradox?
The Bug-Rivet Paradox is a thought experiment in special relativity. A rivet longer than a hole moves at relativistic speed toward the hole. In the hole's rest frame, the rivet contracts and appears to fit; in the rivet's rest frame, the hole contracts and the rivet doesn't fit. The apparent contradiction is resolved by the relativity of simultaneity — the two events (rivet tip reaching the bottom and rivet tail entering the hole) are not simultaneous in both frames.
What is the Lorentz factor and how does it affect length?
The Lorentz factor γ = 1 / √(1 − v²/c²) is the central quantity in special relativity. At v = 0, γ = 1 (no relativistic effects). At v = 0.5c, γ ≈ 1.155 (about 13% length contraction). At v = 0.9c, γ ≈ 2.294 (about 56% contraction). At v = 0.99c, γ ≈ 7.089 (about 86% contraction). The contracted length seen from a frame at rest relative to the hole is L = L₀ / γ.
Does length contraction physically shrink the rivet?
No — length contraction is a measurement effect, not a physical compression. The rivet's atoms do not get closer together; its internal structure is unchanged from its own perspective. The shorter length is purely a consequence of how space and time coordinates transform between inertial frames moving relative to each other. From the rivet's own frame, the rivet has its full rest length at all times.
How is time dilation related to length contraction?
Both time dilation and length contraction arise from the same Lorentz transformation. A clock moving with the rivet ticks slower by a factor of γ compared to clocks at rest in the hole's frame. Equivalently, the proper time elapsed on the moving clock is τ = t / γ. The same factor γ appears in both effects because space and time are interwoven in special relativity: you cannot have one without the other.
How is relativistic kinetic energy different from classical kinetic energy?
Classical kinetic energy is K = ½mv². Relativistic kinetic energy is K = (γ − 1)mc², where c is the speed of light. At low velocities both formulas give nearly identical results, but at high velocities the relativistic formula grows much faster and approaches infinity as v → c. This is why no object with mass can be accelerated to the speed of light — the required energy would be infinite.
Is the Bug-Rivet Paradox actually a paradox?
It is only an apparent paradox. Both observers — in the hole's frame and the rivet's frame — must agree on the physical outcome (whether the bug is crushed). The contradiction is resolved by carefully accounting for the relativity of simultaneity and the finite speed at which stress waves propagate through the rivet's material. Special relativity is fully self-consistent; what changes between frames is the timing and sequence of events, not the causal outcomes.