Sine Waves

The height of a wave at time t with amplitude A, frequency f and phase φ.

y = A sin(2πft + φ)

The period T = 1/f is the time for one full cycle.

Sound is a vibration of the air; higher frequency sounds higher in pitch.

Calculator

Change a value and the result and picture update instantly.

Result

Height y1
Period T (s)1

Animated picture

The picture follows your values. Some points and shapes can be dragged.

Use in game development

Floating pickups, blinking, camera shake and synthesized sound all use sine waves.

Code example (JavaScript)

sprite.y = baseY + 8 * Math.sin(2 * Math.PI * 0.5 * time); // floating item

What the symbols mean

SymbolMeaning
AAmplitude A
fFrequency f (Hz)
phasePhase φ (°)
tTime t (s)
yHeight y
TPeriod T (s)

More formulas in this category

Frequently asked questions

What is the formula for Sine Waves?
The formula for Sine Waves is y = A sin(2πft + φ). The height of a wave at time t with amplitude A, frequency f and phase φ.

Math Formula Quiz Trigonometry

Sources

Checked: 2026-11-29