# Wave interference and beats > How do two waves add up? Add two sine waves and watch the sum: constructive and destructive interference, and beats when the frequencies are close. Superpose two sine waves by amplitude, frequency and phase. See constructive and destructive interference and the beat frequency of close tones, live. - Page: https://how.box/waves/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/waves/?a1={a1}&f1={f1}&p1={p1}&a2={a2}&f2={f2}&p2={p2} - `a1` (number 0 to 1000): Amplitude of wave 1. Example: `1`. - `f1` (number 0.01 to 1e6): Frequency of wave 1. Example: `4`. - `p1` (number -180 to 180): Phase of wave 1. Example: `0`. - `a2` (number 0 to 1000): Amplitude of wave 2. Example: `0.8`. - `f2` (number 0.01 to 1e6): Frequency of wave 2. Example: `5`. - `p2` (number -180 to 180): Phase of wave 2. Example: `0`. Example answer: https://how.box/waves/?a1=1&f1=4&p1=0&a2=0.8&f2=5&p2=0 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `waves_superpose`: Adds two sine waves y = A·sin(2π·f·t + phase) (a1, f1 Hz, p1 degrees; a2, f2, p2). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"waves_superpose","arguments":{"a1":1,"f1":4,"p1":0,"a2":0.8,"f2":5,"p2":0}}}` - GET: https://how.box/mcp/run/waves_superpose?a1=1&f1=4&p1=0&a2=0.8&f2=5&p2=0 ## How it works When two waves meet, the result at each moment is simply the sum of the two: this is superposition. A wave here is y = A·sin(2πft + φ), with amplitude A (its height), frequency f in hertz (cycles per second) and phase φ (where in its cycle it starts). With equal frequencies the sum is again one sine wave, of amplitude √(A₁² + A₂² + 2A₁A₂·cos Δφ), where Δφ is the phase difference. In step (Δφ = 0°) the amplitudes add, which is constructive interference; half a cycle apart (180°) they subtract, which is destructive interference, and equal waves cancel completely. Noise-cancelling headphones use exactly this. With slightly different frequencies the waves drift in and out of step, so the sum swells and fades: beats, at the beat frequency f₁ − f₂. A 440 Hz and a 442 Hz tone beat twice a second, which is how musicians tune by ear. For example, 4 Hz and 5 Hz with amplitudes 1 and 0.8 beat once a second, between 0.2 and 1.8. Source: OpenStax University Physics, volume 1, sections 16.5 and 17.6. ## FAQ **Can I tell which note is sharp just from the beat frequency?** No. The beat frequency gives the size of the frequency difference, not its direction. Compare the two frequencies to see which is higher. **Will changing the starting phase change the beat rate?** No. For different frequencies, phase shifts when the loud and quiet parts occur. The beat rate still depends on the frequency difference. **Can this show standing waves along a string?** No. It shows the sum at one point over time. A standing-wave picture also needs position along the string and waves travelling in opposite directions. **What unit is the amplitude?** Any unit you like, such as pascals of sound pressure, volts or centimetres of water, as long as both waves use the same one. **Why does destructive interference sometimes leave a wave?** Destructive interference describes the opposing phases, even when the amplitudes differ. The larger wave is only partly cancelled, leaving the difference between the amplitudes. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)