Formula Bro

Math and physics formulas, explained like you are new.


Bragg's Law

In one sentence: X-rays bounce off the evenly spaced layers of a crystal, and the bounces add into one strong peak only at certain angles.

nλ=2dsin⁡θn\lambda = 2d\sin\theta

Read it out loud: “n times lambda equals 2 times d times sine theta. n is a whole number: 1, 2, 3 and so on. Lambda is the wavelength, the distance from one wave crest to the next. d is the distance between neighboring flat layers of atoms in the crystal. Theta is the glancing angle, the small angle between the beam and those layers. Sine theta is a number between 0 and 1 that depends on the angle.”

Before you start

The ideas and signs this page uses, explained from zero. For powers of ten, Greek letters and other notation in general, see Math basics.

Powers of ten, like 10−1010^{-10} m

X-ray wavelengths are tiny, so scientists write them with a power of ten. The small raised number, the exponent, says how many times to multiply by ten. A negative exponent means divide by ten that many times, so the number is small. 10−1010^{-10} is one ten-billionth. An X-ray wavelength of 1.50×10−101.50 \times 10^{-10} m means 1.50 with the decimal point moved 10 places to the left: 0.00000000015 m.

Greek letters λ\lambda (lambda) and θ\theta (theta)

Greek letters are extra names for quantities, because the Latin alphabet runs out. The letter λ\lambda is said LAM-duh, and it is the usual name for a wavelength. The letter θ\theta is said THAY-tuh, and it usually names an angle. Each letter here stands for one number, and the letter names do not change what the formula means.

Sine and inverse sine, sin⁡θ\sin\theta and arcsin\arcsin

The sine of an angle is a number from 0 to 1 that grows as the angle grows from 0 to 90 degrees. On a right triangle, it is the length of the side opposite the angle divided by the longest side. A calculator gives sin⁡30∘=0.5\sin 30^\circ = 0.5. The inverse sine, written arcsin, works backward: if the sine is 0.3, arcsin(0.3) gives the angle, about 17.5 degrees.

Degrees and radians

An angle can be measured in degrees, where a full turn is 360 degrees, or in radians, where a full turn is about 6.283 radians. Both are correct, but a calculator must be set to the unit you are using. In degree mode, sin⁡30∘=0.5\sin 30^\circ = 0.5. In radian mode, typing 30 gives a very different number, so a wrong setting is one of the most common mistakes.

Crystal planes

A crystal is a solid whose atoms sit in a regular, repeating pattern, a bit like tiles on a floor. Some slices through that pattern contain many atoms in one flat sheet. These sheets are called planes. Parallel planes repeat again and again, and dd is the distance between neighboring planes. Table salt and many minerals form crystals.

Waves that add or cancel

A wave has a crest, a high point, and a valley, a low point. When two copies of a wave meet with their crests lined up, they add into a bigger wave. When a crest meets a valley, they cancel. Two waves that travel different distances end up in step when the difference is a whole number of wavelengths. That idea is the heart of this formula.

Nanometer (nm) and the meter

The meter, m, is the base unit of length. A nanometer, nm, is one billionth of a meter, which is 10−910^{-9} m. So 0.150 nm is 0.150×10−90.150 \times 10^{-9} m. Atoms are a few tenths of a nanometer across, which is why nanometers are a natural unit for crystal spacings.

What each symbol means

SymbolMeaning

nn

The order of the peak. It is a whole number, 1, 2, 3 and so on, that counts how many full wavelengths fit into the extra path. The first peak has n=1n = 1. It has no unit, because it is only a count. It is not the refractive index, which is a different quantity written with the same letter in optics.

λ\lambda

The wavelength of the incoming wave, in meters (m). It is the distance from one crest to the next. For X-rays it is usually about 10−1010^{-10} m, which is one ten-billionth of a meter, about the same as the spacing between atoms. The example below uses λ=0.150\lambda = 0.150 nm.

dd

The spacing between neighboring parallel planes of atoms in the crystal, in meters (m). Typical values are a fraction of a nanometer, which is 10−1010^{-10} m to 10−910^{-9} m. The crystal sets this distance. Measuring the peaks lets scientists work out dd when the wavelength is known.

θ\theta

The glancing angle: the angle between the incoming beam and the flat planes, measured along the planes rather than from a line sticking straight out of the surface. It is an angle, so it is measured in degrees or radians. The example below finds θ=17.5\theta = 17.5 degrees for the first peak.

The formula piece by piece

θ\theta

The glancing angle. It is the angle the beam makes with the flat planes of the crystal. A small angle means the beam runs almost along the planes, and a larger angle means it hits them more directly. The formula finds the angles at which a strong peak appears.

sin⁡θ\sin\theta

The sine of the glancing angle. It is a number from 0 to 1 that depends on the angle. It appears because the extra distance traveled is a side of a right triangle, and the sine turns the angle into the length of that side compared with the longest side.

2d2d

Twice the spacing between neighboring planes. The wave goes down to the lower plane and comes back up, so the distance between the planes is counted twice. The factor 2 is the two trips, down and back.

2dsin⁡θ2d\sin\theta

The extra distance a wave travels after reflecting from a lower plane compared with an upper one. Two trips of length dsin⁡θd\sin\theta each give 2dsin⁡θ2d\sin\theta. This is the path difference that decides whether the reflections add or cancel.

nλn\lambda

A whole number of wavelengths. With n=1n = 1 it is one wavelength, with n=2n = 2 it is two wavelengths, and so on. When the extra distance equals this amount, the reflections arrive in step and add into a strong peak.

nλ=2dsin⁡θn\lambda = 2d\sin\theta

The whole formula in one sentence: a whole number of wavelengths equals twice the plane spacing times the sine of the glancing angle. A strong peak appears only at the angles that make this statement true.

What the formula is doing, and why

What goes in. A beam of waves, such as X-rays, hits a crystal. The crystal has flat layers of atoms, called planes, spaced a fixed distance dd apart. Each plane reflects a small part of the wave, the way a window reflects a little light. The beam arrives at a glancing angle θ\theta, a shallow angle between the beam and the planes. The formula asks at which angles these reflections add up into a strong peak.

What happens: the extra path. A wave reflected from a lower plane travels farther than one reflected from the plane above it. Picture the trip down to the lower plane. The spacing dd and the angle θ\theta form a right triangle, and the extra length of that trip is dsin⁡θd\sin\theta. The trip back up adds the same amount, so the extra distance is 2dsin⁡θ2d\sin\theta in total.

Why whole numbers of wavelengths? When the extra distance equals exactly one wavelength, two wavelengths, or any whole number nn of wavelengths, the reflections arrive in step. Their crests line up and add into a strong peak. At other angles the reflections arrive partly out of step and cancel, so no strong peak appears. This is why a push on a swing builds up only when each push arrives at the right moment.

Why the sine has a limit. The sine of any angle is never bigger than 1. So nλn\lambda can be no bigger than 2d2d. If nλn\lambda is bigger than 2d2d, no angle can satisfy the rule, and that order of peak cannot exist for that crystal. This is why a crystal shows only a few peaks for a given wavelength.

Where it applies. The rule needs a regular crystal, with planes that repeat at a fixed spacing. Glass and liquids lack such planes, so they do not give sharp peaks like this. Measuring the angles of the peaks lets scientists find dd when the wavelength is known, or the wavelength when dd is known. X-ray crystallography uses this to work out how atoms are arranged in minerals and in protein crystals.

An everyday picture

Think of a staircase where each step is one layer of atoms. Imagine a sound pulse bouncing off each step. A pulse that bounces off a lower step travels a little farther than one from a higher step. When the extra distance is a whole number of wavelengths, all the bounces return in step and add into one loud echo in that direction. At other directions they return out of step and cancel, so the echo is weak.

Worked example: First and second peaks from an X-ray beam

An X-ray beam has wavelength λ=0.150\lambda = 0.150 nm, which is 1.50×10−101.50 \times 10^{-10} m. It hits a crystal whose atomic planes are d=0.250d = 0.250 nm apart, which is 2.50×10−102.50 \times 10^{-10} m. Find the glancing angle of the first peak, n=1n = 1, and the second peak, n=2n = 2. Both lengths are in nanometers, so we can work with those numbers directly.

  1. Rearrange the formula to find the sine. We want the angle, so we first need its sine. Divide both sides of nλ=2dsin⁡θn\lambda = 2d\sin\theta by 2d2d to get sin⁡θ=nλ2d\sin\theta = \frac{n\lambda}{2d}. Now the unknown angle stands alone on one side, and every other piece is a number we know.
  2. Put in the numbers for the first peak. For the first peak n=1n = 1. Both λ\lambda and dd are in nanometers, so the same 10−910^{-9} factor appears on both and cancels when we divide: sin⁡θ=1×0.1502×0.250=0.1500.500=0.300\sin\theta = \frac{1 \times 0.150}{2 \times 0.250} = \frac{0.150}{0.500} = 0.300. If we use meters instead, 1.50×10−102×2.50×10−10\frac{1.50 \times 10^{-10}}{2 \times 2.50 \times 10^{-10}}, the 10−1010^{-10} parts divide to 100=110^{0} = 1, and we get the same 0.300.
  3. Check that the sine is allowed. A sine can never be larger than 1, and 0.300 fits inside that range. This quick test matters, because a sine above 1 would mean no peak can form at any angle, as the last step will show.
  4. Find the angle with the inverse sine. We ask which angle has a sine of 0.300. The inverse sine gives θ=arcsin⁡(0.300)≈17.46∘\theta = \arcsin(0.300) \approx 17.46^\circ, which rounds to about 17.5 degrees. The calculator must be in degree mode, or the number it gives will not be an angle in degrees.
  5. Second peak, n = 2. Now the extra path is two whole wavelengths, so sin⁡θ=2×0.1502×0.250=0.3000.500=0.600\sin\theta = \frac{2 \times 0.150}{2 \times 0.250} = \frac{0.300}{0.500} = 0.600. Doubling nn doubles the sine, so the second peak sits at a larger angle than the first. The inverse sine gives θ=arcsin⁡(0.600)≈36.87∘\theta = \arcsin(0.600) \approx 36.87^\circ, which is about 36.9 degrees.
  6. Third peak, and why the peaks stop. For n=3n = 3 we get sin⁡θ=3×0.1500.500=0.900\sin\theta = \frac{3 \times 0.150}{0.500} = 0.900, so θ≈64.2∘\theta \approx 64.2^\circ. For n=4n = 4 we get sin⁡θ=4×0.1500.500=1.200\sin\theta = \frac{4 \times 0.150}{0.500} = 1.200. A sine of 1.2 is impossible, so no fourth peak exists for this crystal and this wavelength. The rule is that nλn\lambda must not be larger than 2d2d.
  7. Read the result with units. The sine has no unit, so each answer is an angle. The nanometers cancel in the first step, because the wavelength and the spacing were in the same unit to start with. Only the angle is left as the answer, and it is measured in degrees.

Answer: The first peak appears at a glancing angle of about 17.5 degrees, and the second at about 36.9 degrees. A third peak appears near 64.2 degrees. A fourth would need a sine above 1, so it cannot form with this wavelength and this spacing.

The numbers in this example are recomputed by script every time the site is built.

Common mistakes

Where you will meet it

Questions people ask

Why do X-rays reflect from inside the crystal?

The beam enters the crystal, and every layer of atoms reflects a little of it, not only the top layer. The reflections from many layers add into a strong peak only at the angles that match the rule. At the other angles they cancel.

What does the letter $n$ mean?

It is the order of the peak. The first peak has n=1n = 1, the second has n=2n = 2, and so on. It counts whole wavelengths in the extra path. It is always a whole number, so it cannot be 1.5. It is not the refractive index used in optics.

Why does the rule also work for electrons?

Electrons behave as waves too, and their wavelength depends on how fast they move. When electrons move at the right speed, their wavelength is close to the spacing between atoms in a crystal. Then the electrons diffract like X-rays, and the same formula works.

Sources

  1. Bragg's law, Wikipedia
  2. Davisson-Germer experiment, Wikipedia

| All Quantum formulas |

Published 2026-10-22. Plain-text copy for AI agents and readers: quantum-mechanics/bragg-law.md.