Why do the units in the period of a mass-spring SHM not work out? [closed]

I am a high school physics teacher having students use the period of a mass-spring system with a known mass to determine the spring constant. We are practicing linearizing functions, so rather than plotting period vs mass, students are rearranging the usual period equation to allow $$k$$ to come out as a slope.

The units in $$T_s = 2 \pi \sqrt{m/k}$$ simply don't seem to work out to be seconds (there appears to be a missing unit of distance).

$$\sqrt\frac{kg}{kg m s^2} = \sqrt{s^2/m}$$

What am I missing? This seems terribly obvious, but the units of the RHS just don't work out to be seconds. This seems independent of the 'unitless radians' conversations that I've seen as the core of any similar questions on this topic.

closed as off-topic by sammy gerbil, GiorgioP, Kyle Kanos, Feynmans Out for Grumpy Cat, ZeroTheHeroMar 13 at 4:41

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "Homework-like questions should ask about a specific physics concept and show some effort to work through the problem. We want our questions to be useful to the broader community, and to future users. See our meta site for more guidance on how to edit your question to make it better" – sammy gerbil, GiorgioP, Kyle Kanos, Feynmans Out for Grumpy Cat, ZeroTheHero
If this question can be reworded to fit the rules in the help center, please edit the question.

• Steinkamp, it may be more convenient if you have your students plot $T^2 vs. m$, in which case the slope of the resulting line will be $4 \pi^2/k$. – David White Mar 8 at 17:10
• In addition to what @DavidWhite pointed out, you should notice that your units for $k$ are mistaken. – Feynmans Out for Grumpy Cat Mar 12 at 0:02

$$\omega=\sqrt{\frac{k}{M}}$$
$$F=k\,x\quad \Rightarrow\quad [k]=\frac{\mathrm{N}}{\mathrm{m}}=\frac{\mathrm{kg\, m/s^2}}{\mathrm{m}}$$
$$[\omega]=\sqrt{\frac{\mathrm{kg\, m}}{\mathrm{m\,s^2\,kg}}}=\frac{1}{\mathrm{s}}$$
$$[T]=\frac{2\,\pi}{[\omega]}=\mathrm{s}\quad \surd$$