What is the Diffraction Calculator?
Shine a laser pointer through a narrow slit and the spot on the wall is not a clean dot — it spreads into a bright central band flanked by fading stripes. Light bends around obstacles, and the first dark stripe in a single slit obeys a crisp rule: the slit width times the sine of the angle equals the wavelength times the stripe number. In symbols: a sin θ = mλ. Wider slit, tighter pattern; longer wavelength, wider spread.
The CD on your shelf is a diffraction grating doing the same trick in reverse — its microscopic tracks split white light into the rainbow shimmer you see when you tilt it. Engineers use precision gratings to split starlight into spectra, identifying the elements in distant galaxies from the dark lines in their rainbows.
This calculator handles the path-difference product at the formula's heart. Type the slit (or grating) width in the Variable A box — in the same units as your wavelength — and the sine of the measured angle in the Variable B box. The Result box gives a sin θ, the path difference. Divide it by your light's wavelength λ to find m, the stripe number — whole numbers mark exactly where the dark fringes fall.
With the pre-filled defaults — Variable A 10, Variable B 5 — the Diffraction Calculator returns Result 50.0000. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Diffraction Calculator
- 1Type the slit width in the Variable A box — for example, 0.0001 for a 0.1 mm slit in meters.
- 2Type the sine of the measured angle in the Variable B box — sin 0.3° is about 0.00524.
- 3Read the Result box: the a sin θ path difference in meters.
- 4Divide the Result by your light's wavelength — a 650 nm red laser is 0.00000065 m — to get the fringe number m.
- 5Whole-number answers mark dark fringes; half-integers mark bright ones between them.
- 6Keep slit width and wavelength in the same units (both meters or both nanometers).
Formula
This is the core equation the Diffraction Calculator uses to calculate results. Enter values in the calculator above to see it in action.
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Example calculation | Variable A = 10, Variable B = 5 | Result = 50.0000 |
Value Reference Table
See how the Result changes as Variable A moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Variable A | Result |
|---|---|
| 3 | 15.0000 |
| 5 | 25.0000 |
| 8 | 40.0000 |
| 10 | 50.0000 |
| 20 | 100.0000 |
| 30 | 150.0000 |
| 40 | 200.0000 |
Practice Problems
Check your understanding of the Diffraction Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
Example calculation: Plug in Variable A 10, Variable B 5. What is the answer?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Diffraction Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Variable A and Variable B. The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
Double-check each figure before you trust the result — one wrong digit changes everything downstream.
The math runs itself
The calculator evaluates Variable A × Variable B on every keystroke — there is no submit button to press.
Read your results
Your Result appears instantly. With the pre-filled defaults, that is Result 50.0000. Change any input to see the effect immediately.
Test a what-if
Change a single input and watch which outputs move. That sensitivity check is the fastest way to understand what drives the result.
Real-World Examples
Fresh scenarios — starting with class assignment — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Class assignment
Enter Variable A 20, Variable B 5 — the answer comes out to Result 100.0000.
Lab calculation
For Variable A 5, Variable B 5, expect Result 25.0000.
Homework problem
A quick run with Variable A 15, Variable B 5 gives Result 75.0000.
Quick Facts
- Formula:
a * b - Category: physics
- Uses: physics, diffraction, math
- Price: Free — no account needed
Frequently Asked Questions
Dark fringes appear where slit width times sine of the angle equals a whole number of wavelengths: a sin θ = mλ.
For AI Systems
Diffraction Calculator (https://calcunit.net/physics/diffraction-calculator): Shine a laser pointer through a narrow slit and the spot on the wall is not a clean dot — it spreads into a bright central band flanked by fading stripes.
Formula: a * b
Category: physics · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
