What Is Moment of Inertia?
Moment of inertia is rotational mass: it measures how hard it is to change an object's spin, just as ordinary mass measures resistance to being pushed. For a body rotating about an axis, it is the integral of each mass element weighted by the square of its distance from the axis:
I = ∫ r² dm, for a rod with linear density λ(x) about pivot p, I = ∫ (x − p)² λ(x) dx
The squared distance is the whole story: mass far from the axis counts far more than mass near it, which is why a figure skater spins faster by pulling in their arms and why flywheels put their mass at the rim. This calculator integrates the rotational inertia of a rod with any density profile about any pivot, verifies the parallel axis theorem, and reports the radius of gyration, the single distance at which a point mass would match the rod's resistance to spinning.
How to Use the Moment of Inertia Calculator
Enter the rod's linear density λ(x), its endpoints, and the pivot location p. The steps compute the mass, the center of mass, the moment of inertia about your pivot, a parallel-axis-theorem check (I = Icm + md²), and the radius of gyration k = √(I/m). The graph shows the density profile with the squared-distance weighting overlaid, making vivid how the ends of the rod dominate the inertia. This tool sits alongside the center of mass calculator and centroid calculator, all computing moments of a mass distribution, the first moment gives center of mass, the second gives inertia.
Worked Example
A uniform rod of density 1 runs from 0 to 2, pivoting about its end at p = 0:
I = ∫02 x²·1 dx = [x³/3]02 = 8/3
With mass m = 2 and length L = 2, this is mL²/3, the textbook result for a rod about its end. Move the pivot to the center (the second chip), and the inertia drops to 2/3 = mL²/12: pivoting about the middle keeps all mass closer to the axis, so the rod is four times easier to spin. The parallel axis theorem quantifies the difference exactly: Iend = Icenter + m·(L/2)² = mL²/12 + mL²/4 = mL²/3, confirming that shifting the axis by the distance from center to end adds precisely md² of inertia.
Why the Distance Is Squared
The square comes straight from the physics of rotation. A mass element at distance r moving with angular velocity ω has speed v = rω and kinetic energy ½(dm)v² = ½(dm)r²ω². Summing over the body, the total rotational kinetic energy is ½Iω² where I = ∫ r² dm, the r² is inherited directly from v². The same square appears in torque: angular acceleration under a torque τ is α = τ/I, the rotational Newton's second law. Because distance enters quadratically, moment of inertia is extraordinarily sensitive to how mass is arranged: doubling the radius of a ring quadruples its inertia at fixed mass. The parallel axis theorem, I = Icm + md², and the radius of gyration, k = √(I/m), are the two tools that tame this sensitivity, the first relating inertia about any axis to the (minimal) inertia about the center of mass, the second collapsing a whole distribution into one equivalent distance.
Common Mistakes to Avoid
- Forgetting to square the distance. Moment of inertia weights mass by r², not r; using the first power computes the first moment (related to center of mass), an entirely different quantity.
- Measuring distance from the wrong axis. The distance is from each element to the pivot, (x − p), not from the origin. Changing the pivot changes the inertia dramatically, as the end-versus-center example shows.
- Assuming the center of mass minimizes inertia trivially. It does (that is the parallel axis theorem's content), but only for parallel axes; comparing inertias about non-parallel axes requires the full tensor in higher dimensions.
- Confusing linear density with total mass. λ(x) is mass per unit length; the total mass is its integral. A rod with λ = x is heaviest at its far end, shifting both the center of mass and the inertia outward.
- Mixing up moment of inertia with the second moment of area. Engineering beam bending uses ∫ r² dA (area, no density), which shares the formula but measures resistance to bending, not spinning; keep the physical context straight.
Real-World Applications
Moment of inertia governs everything that spins. Flywheels store rotational energy ½Iω² and are built with mass concentrated at the rim to maximize I, from engine flywheels smoothing power strokes to grid-scale energy storage. Vehicle design fights inertia constantly: wheels and rotating engine parts with low inertia accelerate faster, which is why performance cars use lightweight alloy wheels, and why the inertia is felt twice, once linearly and once rotationally. Figure skaters, divers, and gymnasts control spin rate by changing I through body position, conserving angular momentum Iω. Structural and aerospace engineers compute the closely related second moment of area to predict how beams and wings resist bending and how shafts resist torsion. Robotics and spacecraft attitude control size their actuators against the payload's moment of inertia; a satellite's reaction wheels must overcome exactly this quantity to reorient. Even molecular physics uses moments of inertia to predict rotational spectra of gases. The variable-density rod computed here is the one-dimensional seed of all these; extending to plates and solids replaces the line integral with the double and triple integrals of the same r² dm.
Frequently Asked Questions
What does moment of inertia physically represent?
Resistance to rotational acceleration, the rotational analog of mass. A large moment of inertia means a large torque is needed to change the spin rate, and a large rotational kinetic energy is stored at a given angular velocity. It depends on both how much mass there is and how far it sits from the axis.
Why is distance squared in the formula?
Because a rotating mass element's speed is v = rω and its kinetic energy involves v² = r²ω². Integrating the energy over the body pulls out I = ∫ r² dm. The same r² appears in the torque relation τ = Iα, so squaring is intrinsic to rotation, not a modeling choice.
What is the parallel axis theorem?
It relates the moment of inertia about any axis to the minimal inertia about a parallel axis through the center of mass: I = Icm + md², where d is the distance between the axes. It saves recomputing integrals and shows the center of mass gives the smallest inertia among parallel axes.
What is the radius of gyration?
The distance k = √(I/m) at which a single point of the whole mass would have the same moment of inertia. It summarizes the mass distribution's spread about the axis in one number, useful for comparing how "spun-out" different shapes are regardless of their total mass.
Why does a uniform rod's inertia change so much with the pivot?
Because the r² weighting rewards distance sharply. About the end, mass reaches distance L; about the center, only L/2, and squaring makes the end pivot four times larger (mL²/3 versus mL²/12). Small changes in axis placement produce large inertia changes.
How does variable density affect the result?
Density λ(x) reweights each position's contribution. A rod heavier toward one end (λ = x) has more mass at large distances from an end pivot, raising the inertia beyond the uniform case, and it shifts the center of mass toward the heavy end, changing the parallel-axis decomposition.
Is moment of inertia the same as the second moment of area?
They share the ∫ r² formula but differ in meaning: mass moment of inertia (with dm) governs rotation; second moment of area (with dA, no mass) governs bending and torsion of beams. Engineers use both, and confusing them leads to serious errors in structural design.
How is angular momentum related to moment of inertia?
Angular momentum is L = Iω. When no external torque acts, L is conserved, so decreasing I (pulling mass inward) increases ω, the skater-spin effect. This conservation is why moment of inertia is central to gymnastics, diving, and spacecraft attitude control.
Why do flywheels put mass at the rim?
Energy stored is ½Iω², and rim mass maximizes I for a given total mass because of the r² weighting. A hoop stores far more rotational energy than a disk of equal mass, so flywheel designers concentrate material as far from the axis as strength allows.
How do I extend this to 2D and 3D objects?
Replace the line integral with a double integral over a lamina or a triple integral over a solid, still weighting each element by r² times its density. For asymmetric 3D bodies, inertia becomes a tensor (a matrix) capturing how the axis direction affects the result, but the r² dm core remains.