The momentof inertia of a long straight rod rotating about is center of mass, as shown below, is given by
I = (1/12)*M*L^2