There are two general scenarios for a rod's moment of inertia. The axis of rotation passes through the center of the mass. $$I = \\frac{1}{12} ML^2$$ The axis is through the end of the rod $$I_{end} = \\frac{1}{3}ML^2$$