The moment of inertia of a system of N particles is the sum of the product of each particle mass and the square of its distance from the axis of rotation. The formula for the moment of inertia is I = Σ miri2.