Choose the axis before choosing a formula
Moment of inertia describes the mass distribution relative to a specified rotation axis. Each element contributes its mass multiplied by the square of its perpendicular distance r from that axis:
Its SI unit is kg·m². Doubling a particular element's distance multiplies that element's contribution by four. Equal masses can therefore have different moments of inertia.
A new discrete example
Consider two small masses on a light frame, each of mass 0.40 kg, at perpendicular distances 0.15 m and 0.30 m from a fixed axis. Neglect the frame's mass. Their total is
Moving the second mass to 0.15 m gives I = 0.018 kg·m². The total mass stays 0.80 kg, but the moment of inertia changes because the distribution changes. This is a different system from a continuous rod.
Continuous bodies require a mass model
Use dm = λ(s) ds for a thin body with position-dependent linear density. For a uniform body of length ℓ and mass m, λ = m/ℓ. Integration limits must cover the entire body, and r must be measured from the requested axis. A signed position coordinate can be negative; its squared contribution cannot.
What the parallel-axis theorem permits
For parallel axes, one of which passes through the center of mass,
Here d is the shortest distance between those axes. The reference value must be for the same body and for an axis parallel to the requested one. An arbitrary noncentral reference axis cannot be used as I_CM. Since Md² is nonnegative, shifting a center-of-mass axis parallel to itself cannot reduce I.
Transferable checks
Check the axis orientation, density model, dimensions, integration limits, and the center-of-mass offset. Using the body's full length as d without locating its center of mass generally gives a wrong answer.
Related question
Apply this knowledge
Use the concept guide to understand the reasoning, then return to the complete question and worked answer.
Rotation of Inertia: A Thin Rod with an Axis at L/3Sources
These references support the core concepts and interpretation boundaries explained above.