Simple Harmonic Motion Calculator

Period (seconds)—
Frequency (Hz)—
Angular frequency (rad/s)—

How Simple Harmonic Motion Calculator is calculated: Spring: T = 2π √(m / k); pendulum: T = 2π √(L / g)

What is a Simple Harmonic Motion?

A simple harmonic motion calculator is a free online tool that works out the period, frequency and angular frequency of a spring-mass system or a simple pendulum. For a spring it uses T = 2π times the square root of mass over spring constant, and for a pendulum T = 2π times the square root of length over g. It gives the answer instantly as you type, with the main result shown first and the supporting figures underneath, so you can check the headline number and the working behind it in one glance.

It is used by school and college physics students, teachers checking lab work, and engineering students revising oscillations. If you are working through a set of problems, a velocity calculator is often the next step once this answer is in hand, because the two quantities feed into each other.

To use it, enter the system type, the mass in kilograms, the spring constant in newtons per metre, and the pendulum length in metres. The calculator runs entirely in your browser: nothing you type is uploaded, stored, or shared, and there is no sign-up. You can change any value and the results update at once, which makes it easy to test what happens when one input moves.

How the Simple Harmonic Motion works

For a spring, the period is 2π times the square root of the mass divided by the spring constant. For a pendulum, the period is 2π times the square root of the length divided by the acceleration due to gravity, 9.81 metres per second squared. The formula the calculator uses is: Spring: T = 2π √(m / k); pendulum: T = 2π √(L / g). Every symbol in that formula has one meaning and one unit, and keeping the units straight is most of the work in getting a right answer.

By hand, the steps are: divide the mass by the spring constant (or the length by 9.81 for a pendulum), take the square root, and multiply by 2π, which is about 6.283. The calculator does the same steps in the same order, so a hand check on one example should land on the same number the page shows, allowing for the rounding in the display.

Mass must be in kilograms, the spring constant in newtons per metre, and length in metres, because the formula gives seconds only when SI units go in. The calculator is an estimate in the sense that it trusts the numbers you enter: it cannot tell whether a measurement was read correctly, so a wrong input gives a wrong-looking answer with no warning. Always check the units before trusting a result.

One more check: the formula above is the one the page uses, so a textbook that writes it differently is usually just rearranging the same relation or using different symbols. Match the symbols by their meaning, not by their shape, and the numbers will agree. If your book gives the answer in different units, convert at the end rather than in the middle, so a conversion slip cannot hide inside the working.

Getting the spring constant right

The spring constant, k, is the input most people get wrong, because it is rarely given directly in a problem. It is the force needed to stretch or compress the spring by one metre, in newtons per metre. A soft spring from a pen might be around 100 newtons per metre, while a car suspension spring is in the tens of thousands.

If a problem gives you a force and an extension instead, work k out first with Hooke's law: k equals force divided by extension. A 10 newton pull that stretches a spring by 0.05 metres means k is 200 newtons per metre. Entering the extension itself as k is the classic error, and it throws the period out completely.

For a pendulum the tricky input is the length, which is measured from the pivot to the centre of the bob, not to the top of the bob or the end of the string. A small error here matters less than a wrong spring constant, because the period depends on the square root of the length: doubling the length only stretches the period by about 41 percent.

A worked example

Take this example: 0.5 kg, 20 N/m. A 0.5 kilogram mass hangs on a spring with a constant of 20 newtons per metre. Put those numbers into the calculator and it returns Period (seconds) 0.993 ; Frequency (Hz) 1.01 ; Angular frequency (rad/s) 6.32 .

Working it through by hand: T = 2 × π × √(0.5 ÷ 20) = 2 × π × 0.158 = 0.993 s, and f = 1 ÷ 0.993 = 1.01 Hz, with angular frequency 2 × π × 1.01 = 6.32 rad/s. The hand result matches the calculator exactly, which is the point of the check: if your own working gives a different number, one of the inputs was typed in the wrong unit or the wrong box.

Try a second set to see how the answer moves: a simple pendulum 1 metre long. T = 2 × π × √(1 ÷ 9.81) = 2.01 s, so the pendulum takes about two seconds per swing Changing one input at a time and watching the result is the fastest way to build a feel for the formula, and it is how most students spot a typing error before it reaches their homework.

Who uses a Simple Harmonic Motion and why

The first group is students. A student checking a textbook problem enters the mass and spring constant, reads the period, and compares it with the answer at the back of the book before handing the work in.

The second is teachers and tutors. A teacher setting up a lab uses it to predict the period students should measure, so a class result that is far off can be traced to a wrong mass, a tired spring, or a timing error rather than a wrong formula. A kinetic energy calculator is a natural companion here, since lessons often pair the two quantities in the same problem set.

The third is anyone doing practical work. An engineering student modelling a suspension or a vibrating beam uses the same formula to estimate the natural frequency, which is the first step in checking whether a machine will shake itself apart at its running speed. None of these uses needs an account or an install: the page opens, the numbers go in, and the answer is there.

Exam and homework use is the common thread across all three groups. A calculator gives the number, but the marks come from the working: write the formula, substitute the values with units, and then the answer. A bare number with no working earns little credit even when it is right, while a shown method with one small slip usually earns most of the marks.

Simple Harmonic Motion Calculator vs Frequency Converter

A frequency converter answers a different question: it converts a frequency you already have between hertz, kilohertz, megahertz, and other frequency units, without working out the frequency from a period or a wave.. The two tools look similar because they share inputs, but they solve for different unknowns, and picking the wrong one is the most common source of confusion between them.

Use this Simple Harmonic Motion when the quantity you need is the one named in the title above. Use the Frequency Converter when your unknown is the one it is named for instead. If a problem gives you the answer this page produces and asks for something else, that something else is usually the job of the companion tool.

In practice the two are used back to back: work out the first quantity here, then carry it into the second tool as an input. Keeping the chain in that order, and writing each intermediate answer down, stops small rounding slips from growing into a wrong final answer.

Common mistakes with a Simple Harmonic Motion

The first mistake is using grams instead of kilograms for the mass, which makes the period about 32 times too small, because the square root of 1000 is about 31.6.

The second is entering the spring constant in newtons per centimetre, which is 100 times larger than the value in newtons per metre and shrinks the period tenfold.

The third is forgetting that the pendulum formula assumes small swings: at large angles the true period is longer than 2π times the square root of length over g, so lab results at wide swings will not match. A quick habit that catches all three: work one example by hand, compare it with the calculator, and only then trust the page for the rest of the set.

How to use this Simple Harmonic Motion

Step one, enter the system type, the mass in kilograms, the spring constant in newtons per metre, and the pendulum length in metres. Step two, check the units beside each box match the units in your problem. Step three, read the main result at the top of the results box, then the supporting figures below it.

For the most accurate results, use the most precise inputs you have, and keep the same unit system all the way through a problem: mixing centimetres with metres, or milliamps with amps, is the single biggest cause of answers that are out by a factor of ten or a hundred. For a pendulum, keep the swing small, under about 10 degrees, and time ten swings and divide by ten instead of timing one swing, which cuts the reaction-time error.

The calculator is free, works on a phone or a computer, and needs no sign-up. Everything runs in your browser, so your numbers never leave your device, and closing the page leaves nothing behind.

If the answer looks wrong, change one input at a time and watch which one moves the result. A result that jumps by a factor of ten usually means a unit slipped, centimetres for metres or grams for kilograms, while a result that barely moves when an input changes usually means that input matters less than expected, often because it sits under a square root. Both patterns are worth knowing before an exam.

Frequently Asked Questions

The formula is Spring: T = 2π √(m / k); pendulum: T = 2π √(L / g). For a spring, the period is 2π times the square root of the mass divided by the spring constant. For a pendulum, the period is 2π times the square root of the length divided by the acceleration due to gravity, 9.81 metres per second squared. Put the values in with matching units and the calculator applies the formula directly, with no hidden adjustments.

No, not in the ideal formula: the period of a simple pendulum depends only on its length and on g. The mass cancels out. That is why a heavy bob and a light bob on strings of the same length swing together. Air resistance is the only thing that makes mass matter in a real lab, and it is small for dense bobs.

The period is Period (seconds) 0.993 ; Frequency (Hz) 1.01 ; Angular frequency (rad/s) 6.32 . The calculation is T = 2π times the square root of 0.5 divided by 20, which is 2π times 0.158, giving about 0.99 seconds.

The period grows with the square root of the length, so a pendulum four times as long takes twice as long per swing. The bob has further to travel and gravity gives it the same acceleration, so each swing takes longer. This is why pendulum clocks use a long rod for slow, steady ticks.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.