Air Density Calculator
Calculate air density from pressure, temperature, and humidity using the ideal gas law. Includes altitude reference table and moist air corrections.
Explore the bug-rivet (barn-pole) paradox of special relativity. Calculate Lorentz contraction, time dilation, and frame-dependent simultaneity for any speed.
| β (v/c) | γ | Rivet in Barn (m) | Barn in Rivet (m) | Fits? |
|---|---|---|---|---|
| 0.1 | 1.005 | 9.95 | 39.80 | ✅ |
| 0.3 | 1.048 | 9.54 | 38.16 | ✅ |
| 0.5 | 1.155 | 8.66 | 34.64 | ✅ |
| 0.7 | 1.400 | 7.14 | 28.57 | ✅ |
| 0.8 | 1.667 | 6.00 | 24.00 | ✅ |
| 0.9 | 2.294 | 4.36 | 17.44 | ✅ |
| 0.95 | 3.203 | 3.12 | 12.49 | ✅ |
| 0.99 | 7.089 | 1.41 | 5.64 | ✅ |
| Frame | Observation | Resolution |
|---|---|---|
| Barn | Contracted rivet fits inside | Both doors can be closed simultaneously (in this frame) |
| Rivet | Contracted barn is too short | Doors close at different times — relativity of simultaneity |
| Both | Seem contradictory | No paradox: "simultaneously" depends on the frame |
The **Bug-Rivet Paradox Calculator** (also known as the barn-pole paradox) illustrates one of the most counter-intuitive results of Einstein's special relativity: length contraction and the relativity of simultaneity. A long pole (or rivet) flies through a short barn (or hole). In the barn's frame, the pole is Lorentz-contracted and fits inside. In the pole's frame, the barn is contracted and appears too short.
Both observations are correct — the paradox is resolved by recognising that "simultaneously closing both barn doors" means different things in different frames. Events that are simultaneous in one frame are **not** simultaneous in another. This calculator lets you set any proper lengths and relative speed, computing the contracted lengths in both frames, the Lorentz factor, traversal times, and a detailed speed-comparison table.
This is a superb teaching tool for introductory special relativity courses, illustrating length contraction, time dilation, and the breakdown of absolute simultaneity.
The barn-pole paradox is a cornerstone thought experiment in special relativity education. This calculator makes the abstract concrete — showing exact contraction values, frame-by-frame analysis, and resolution in a clear, interactive format.
Lorentz Factor: γ = 1/√(1 − β²)
Contracted Rivet (barn frame): L_rivet/γ
Contracted Barn (rivet frame): L_barn/γ
Traverse Time (barn frame): L_barn/v
Resolution: Relativity of simultaneity — events ordered differently in each frameResult: γ = 2.294, rivet contracts to 4.36 m (fits in 40 m barn), barn contracts to 17.4 m (rivet still fits)
At 0.9c, the Lorentz factor is 2.294. In the barn frame, the 10 m rivet appears just 4.36 m long and easily fits. In the rivet frame, the barn contracts to 17.4 m — still longer than the rivet. The paradox arises for configurations where the pole IS longer than the barn at rest.
Explore the bug-rivet (barn-pole) paradox of special relativity. Calculate Lorentz contraction, time dilation, and frame-dependent simultaneity for any speed. Use it when you need a repeatable calculation in the physics / general category and want the setup, result, and supporting values kept together. This is especially helpful when small input changes, unit choices, or rounding decisions can change the final number.
Start by confirming that the inputs match the formula shown on the page. Then compare the main output with the worked example and any secondary values shown by the calculator. If the result will be used in another calculation, keep extra precision until the final step and record the assumptions beside the number.
Treat the result as a calculation aid rather than a substitute for context. For schoolwork, include the formula and substitution steps. For planning, technical, financial, or health-related decisions, verify important numbers against primary records, current rules, or a qualified professional before acting on them.
Last updated:
A thought experiment where a fast-moving rivet (or pole) appears contracted in the barn frame but the barn appears contracted in the rivet frame. The apparent contradiction is resolved by the relativity of simultaneity.
Yes — it is a real physical effect, not an illusion. Moving objects are genuinely shorter in the direction of motion as measured in the rest frame of the observer.
Two events that are simultaneous in one reference frame are generally NOT simultaneous in another frame moving relative to the first. This resolves the paradox.
Length contraction has been confirmed indirectly (e.g., muon lifetimes, heavy-ion collisions). Direct barn-pole experiments are impractical at achievable speeds.
γ → ∞, and moving objects contract to nearly zero length. At exactly c, the formula diverges — massive objects cannot reach c.
Different paradox — the twin paradox involves time dilation with acceleration. The barn-pole paradox involves length contraction and simultaneity for purely inertial motion.
Calculate air density from pressure, temperature, and humidity using the ideal gas law. Includes altitude reference table and moist air corrections.
Calculate the angle of repose for granular materials. Find pile height, volume, slope ratio, and stability from friction coefficient and density.
Calculate angle of twist, shear stress, and torsional stiffness for solid or hollow shafts under torque. Compare materials side by side.