SHM Energy and Amplitude Calculator

Analyze simple harmonic motion with precise, dynamic computations. Enter mass, stiffness or angular frequency, amplitude, and phase. Instantly derive energy, period, extremes, and time-based state. Control rounding, add scenarios, and compare outputs in tables easily. Export results to CSV and PDF with one click.

Inputs

State at time t is optional.
Tip: If ω is provided, k is computed as mω².

Results

No results yet. Enter inputs and click Compute.
# m (kg) k (N/m) ω (rad/s) A (m) E (J) f (Hz) T (s) vmax (m/s) amax (m/s²) t (s) x(t) (m) v(t) (m/s) a(t) (m/s²) KE(t) (J) PE(t) (J)

Formulas used

ω = √(k/m), f = ω / (2π), T = 2π / ω
E = ½ k A² = ½ m ω² A²
x(t) = A cos(ω t + φ)
v(t) = −A ω sin(ω t + φ), a(t) = −A ω² cos(ω t + φ)
PE = ½ k x², KE = E − PE
A = √(2E/k) (when energy is known)

All quantities are scalar magnitudes in SI units unless noted.

How to use this calculator

  1. Enter mass and choose either stiffness k or angular frequency.
  2. Select whether you want energy from amplitude, or amplitude from energy.
  3. Provide amplitude A or total energy E accordingly.
  4. Optionally set phase and a time t to sample instantaneous state.
  5. Click Compute. Review the summary, then Add to table.
  6. Export your table using CSV or PDF buttons.

Use decimals control to adjust rounding in outputs and exports.

Example data table

Case m (kg) k (N/m) ω (rad/s) A (m) E (J) φ (rad) t (s) x(t) v(t) a(t)

Click any example row to load its values into the form.

How to find energy given mass, amplitude, and period (spring)

Given mass m, amplitude A, and period T, first compute stiffness using the period relation for an ideal spring–mass system:

T = 2π √(m/k) ⇒ k = 4π² m / T²

Then use total mechanical energy at amplitude:

E = ½ k A² = ½ (4π² m / T²) A² = 2π² m A² / T²

Worked example (m = 1.2 kg, A = 0.08 m, T = 0.90 s):

  • k = 4π²·1.2 / 0.90² ≈ 58.49 N/m
  • E = 2π²·1.2·0.08² / 0.90² ≈ 0.187 J

This assumes ideal, undamped motion with a linear spring.

Example: Using the SHM Energy and Amplitude Calculator

Goal: Compute energy, period, frequency, and state at t for inputs.

  • m = 1.500 kg, k = 25.000 N/m, A = 0.120 m
  • φ = 0.000 rad, t = 0.300 s
QuantityValueUnits
ω4.082483rad/s
f0.649747Hz
T1.539060s
E0.180000J
vmax0.489898m/s
amax2.000000m/s²
x(t)0.040702m
v(t)-0.460856m/s
a(t)-0.678372m/s²
KE(t)0.159292J
PE(t)0.020708J

These values match what the calculator will produce for the same inputs.

Energy vs Amplitude (k = 20 N/m)

A (m)E (J)
0.0500.025000
0.1000.100000
0.1500.225000
0.2000.400000
0.2500.625000

E scales with A² at fixed stiffness, as E = ½ kA².

Period and Frequency across m, k

m (kg)k (N/m)ω (rad/s)f (Hz)T (s)
0.50010.0004.4721360.7117631.404963
0.50040.0008.9442721.4235250.702481
1.00020.0004.4721360.7117631.404963
2.00020.0003.1622780.5032921.986918
2.00080.0006.3245551.0065840.993459

Increasing k increases ω and f; increasing m decreases them.

Instantaneous State over One Cycle (m = 1.0 kg, k = 16 N/m, A = 0.10 m, φ = π/6)

t (s)x(t) (m)v(t) (m/s)a(t) (m/s²)
0.0000000.086603-0.200000-1.385641
0.392699-0.050000-0.3464100.800000
0.785398-0.0866030.2000001.385641
1.1780970.0500000.346410-0.800000
1.5707960.086603-0.200000-1.385641

Samples at 0, T/4, T/2, 3T/4, and T show sinusoidal evolution.

Related Calculators

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.