So You Need to Use the De Broglie Wave Equation
It is what it is. You have a particle, you want its wavelength, you plug numbers in. But the actual execution is where things get messy, and most guides skip over the bits that trip people up in practice. The core relationship is straightforward: every moving particle has an associated wavelength inversely proportional to its momentum. Louis de Broglie proposed this in 1924, and it was confirmed experimentally by Davisson and Germer shortly after when they shot electrons at a nickel crystal and watched the diffraction pattern.
The De Broglie Wave Equation Explained
The equation itself is lambda equals h over p, where lambda is wavelength, h is Planck's constant, and p is momentum. Momentum is mass times velocity, so for a non-relativistic particle you can rewrite it as lambda equals h divided by m times v. Planck's constant is 6.626 times 10 to the negative 34 joule-seconds. That number is tiny, which is why you don't notice wave behavior in everyday objects. A baseball thrown at 40 meters per second has a wavelength on the order of 10 to the negative 34 meters. Completely meaningless for any measurement you could conceivably make. Electrons are a different story. They are light enough that their wavelengths land in the nanometer range at typical lab energies. That is why electron microscopes work. That is also why this equation actually matters to anyone doing real work in materials science or quantum chemistry.
Here is the part nobody tells you: when you are working with electrons in an actual microscope, you cannot just use the classical momentum formula. The accelerating voltages are high enough that relativistic corrections matter. If you ignore relativity at 100 kilovolts, your wavelength calculation will be off by about 25 percent. That is not a rounding error. That is a wrong answer. The relativistically corrected version uses the total energy. The momentum becomes the square root of two times the rest mass energy times the kinetic energy, all divided by the speed of light. For an electron accelerated through voltage V, the kinetic energy is e times V, where e is the elementary charge. Plug that into the momentum expression and then divide Planck's constant by the result, and you get a wavelength that actually matches what the instrument measures. I spent a whole week chasing down a discrepancy in a TEM calibration once because I had been using the non-relativistic formula without thinking about it. The specs on the microscope said 0.0037 nanometers at 100 keV. My calculation gave 0.0039. Two hundred picometers of drift that made my lattice spacing measurements consistently wrong. Once I switched to the relativistic form, the numbers aligned. It was embarrassing how long it took me to notice.
Get the Full Details

There is also a common mistake around units. If you are plugging in kilograms and meters per second, you need to make sure your Planck's constant matches. Some people carry eV into the calculation and mix it with SI units without converting. That will give you garbage. Either convert everything to SI first, or use a version of the equation where the constants are pre-combined. The shortcut form lambda equals 1.226 nanometers divided by the square root of the voltage in volts works for non-relativistic electrons and is easy to remember, but again, it breaks down above about 20 or 30 kilovolts. For photons, the equation still applies, but the derivation is different because photons are massless. Their momentum is E over c, so the wavelength becomes h times c over E. This connects directly to the photoelectric effect and Compton scattering. If you are working with X-rays or gamma rays, treat them as particles with momentum and use the same fundamental relationship. The math is cleaner since there is no rest mass term. One thing that trips people up when they first encounter this: the de Broglie wavelength is not a physical wave in the classical sense. It is a probability amplitude. The particle does not literally oscillate like a ripple on water. The wave function describes where you are likely to find the particle if you measure it. This distinction matters when you are actually interpreting experimental data, because diffraction patterns from particle beams are built up one detection event at a time. The interference pattern exists in the statistical distribution, not in any single particle's path.
If you are trying to calculate this for a complex system, like a molecule or a nanoparticle, the same equation applies in principle, but the effective mass and velocity become harder to pin down. I have seen people try to apply it to large organic molecules in time-of-flight experiments and get confused when the numbers did not match their expectations. Usually the problem is that the velocity distribution is too broad, or the effective mass includes internal degrees of freedom that complicate the momentum calculation. In those cases, you need a more detailed treatment of the center-of-mass motion separately from internal states. The practical takeaway is that the equation itself is simple, but applying it correctly requires attention to reference frame, relativistic effects, and unit consistency. Get those wrong and you will spend hours reconciling your calculations with experimental results that never quite line up. The fix is almost always one of those three things, not a deeper physics problem.