Physics Tool

Simple Harmonic Motion Calculator

Compute SHM quantities instantly for spring-mass and pendulum systems: period, frequency, angular frequency, spring constant, mass, displacement, velocity, acceleration, and energy. Scroll down for formulas, examples, and a full learning guide.

Calculator

Results

Ready

Select a mode, enter known values, and click Calculate.

Formula appears here based on selected mode.

Complete Guide to the Simple Harmonic Motion Calculator

Simple harmonic motion (SHM) is one of the most important models in classical physics. If you study mechanics, engineering, vibration analysis, waves, or even electrical systems, you will encounter SHM repeatedly. This calculator is designed to help students, teachers, and professionals solve SHM problems quickly and accurately while also understanding what each quantity means physically.

What Is Simple Harmonic Motion?

Simple harmonic motion is a periodic motion where the restoring force is directly proportional to displacement from equilibrium and points toward equilibrium. Mathematically, this condition is written as F = -kx for a spring, where the minus sign indicates that the force acts in the opposite direction of displacement.

When this restoring-force rule holds, the object oscillates back and forth in a predictable sinusoidal pattern. The motion can be represented with cosine or sine functions, and all key variables are connected: period, frequency, angular frequency, amplitude, phase angle, velocity, and acceleration. Because the relationships are exact for ideal systems, SHM is often used as a foundational model before studying more complex oscillations with damping or external forcing.

Core SHM Formulas

1) Spring-Mass System

Here, m is mass (kg), k is spring constant (N/m), T is period (s), f is frequency (Hz), and ω is angular frequency (rad/s).

2) Simple Pendulum (Small Angle Approximation)

Here, L is pendulum length (m), and g is gravitational acceleration (m/s²). This formula is accurate for small oscillation angles (typically less than about 10–15 degrees).

3) Position, Velocity, and Acceleration in SHM

A is amplitude, φ is phase constant, and t is time. Displacement and acceleration are opposite in sign relative to equilibrium position.

4) Energy in SHM

In ideal SHM, total mechanical energy remains constant while kinetic and potential energies continuously exchange.

How to Use This Calculator

Choose one of the calculator modes based on what values you know and what you need to find. The calculator supports typical physics homework and lab calculations:

For best results, keep units consistent. Use SI units unless you intentionally convert values before entering them.

Worked Examples

Example A: Spring period and frequency

Suppose m = 0.5 kg and k = 200 N/m. Then:

Example B: Find spring constant from measured period

Suppose m = 1.2 kg and measured T = 1.5 s:

Example C: Pendulum length for a 2-second period

Using g = 9.81 m/s² and T = 2 s:

This is why a “seconds pendulum” is very close to 1 meter long.

Example D: Instantaneous state in SHM

Given A = 0.1 m, ω = 8 rad/s, t = 0.2 s, φ = 30°:

Units and Conversions

Using correct units is essential in SHM calculations:

If your input is in centimeters or grams, convert to meters and kilograms first. Incorrect unit conversion is one of the biggest sources of wrong answers in oscillation problems.

Common Mistakes and How to Avoid Them

Real-World Applications of SHM

Simple harmonic motion appears in far more than classroom spring examples. Engineers use SHM approximations in vibration isolation, suspension design, machinery balancing, and structural dynamics. Electronics uses SHM-style mathematics in AC circuits and signal processing. Seismology and geophysics apply oscillation models to interpret natural vibrations. Biomedical engineering uses vibration analysis in diagnostic tools and equipment design. Even timekeeping has historical roots in pendulum oscillations.

By mastering SHM formulas and calculator workflows, you build practical intuition for resonance, stability, and frequency response in real systems. That makes SHM one of the most valuable topics in introductory and intermediate physics.

Frequently Asked Questions

Is this SHM calculator free to use?

Yes. You can use this calculator freely for learning, homework checks, and quick engineering estimates.

Does this calculator include damping?

No. This page models ideal simple harmonic motion without damping or external driving force.

Why does pendulum period not depend on mass?

For an ideal simple pendulum under small-angle assumptions, mass cancels out in the equation, leaving period dependent on length and gravity only.

Can I use this for exam preparation?

Yes. It is useful for verifying calculations, practicing unit handling, and building confidence with core SHM relationships.