ForHosting KIT · Developer Utilities

Wavelength from double-slit fringes calculator

This double-slit wavelength calculator turns a measured interference pattern into an estimate of the light wavelength.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Enter the spacing between adjacent bright fringes, the centre-to-centre separation of the slits, and the perpendicular distance from the slits to the screen, all in metres. The calculator applies the standard small-angle relation and reports the result in metres, nanometres, and micrometres. It is designed for laboratory checks, classroom experiments, and quick analysis of a clean, regularly spaced fringe pattern.

Measure the three distances consistently

The calculation needs three positive lengths: fringe spacing, slit separation, and screen distance. Fringe spacing is the centre-to-centre distance between two adjacent bright bands, not the width of one bright patch at an arbitrary threshold. For a more reliable measurement, measure across several fringe intervals and divide by the number of intervals. Slit separation means the distance between the centres of the two openings, while screen distance is measured perpendicular to the slit plane. Enter every value in metres. For example, convert 0.25 millimetres to 0.00025 metres before submitting it. Keeping one unit system prevents scale errors that can shift the answer by factors of one thousand or more. The pattern should be formed by essentially monochromatic, coherent light, and the slits and screen should be aligned well enough that adjacent central fringes have nearly uniform spacing. If the spacing changes sharply across the region you measured, record a central interval or use a model beyond the paraxial approximation.

Understand the equation and approximation

For a double slit, bright fringes occur when the path difference is an integer number of wavelengths. Near the centre of a distant screen, the small-angle approximation makes the spacing between adjacent bright fringes equal to wavelength multiplied by screen distance and divided by slit separation. Rearranging gives wavelength = fringe spacing × slit separation ÷ screen distance. The calculator evaluates that expression deterministically and returns the wavelength in metres, nanometres, and micrometres. The relation assumes the screen distance is large compared with both the slit separation and the measured displacement from the central axis, so that sine, tangent, and the angle in radians are approximately equal. It also assumes adjacent fringes are being compared. If you measure from the central maximum to a fringe several orders away, divide that total displacement by the number of fringe intervals first. The result is an experimental estimate: it inherits uncertainty from every ruler reading, slit specification, alignment error, and decision about each fringe centre.

Interpret and check the wavelength result

Use the nanometre output for a quick comparison with visible light, but retain the metre result for further equations and uncertainty calculations. A plausible-looking value does not by itself prove the measurements are correct. Repeat the fringe-spacing measurement at several locations near the centre, average the values, and confirm that increasing the screen distance produces proportionally wider fringes. Likewise, a larger slit separation should produce narrower fringes when wavelength and distance remain fixed. These proportional checks are excellent at exposing a mistaken unit conversion or the use of slit width instead of slit separation. If the calculated wavelength differs from the source specification, inspect alignment, ambient light, the sharpness of the fringe centres, and whether the screen is truly perpendicular to the optical axis. The calculator does not fit an image, identify colors, or propagate measurement uncertainty automatically. It provides the ideal paraxial wavelength estimate for the three distances supplied. Browser calculation is free, while an automated API request uses the published base price of $0.002.

Analyze a student optics experiment

Convert ruler measurements from a Young double-slit setup into a wavelength and compare it with the stated laser value.

Check an unknown monochromatic source

Estimate the wavelength of a coherent source from a stable interference pattern when the apparatus geometry is known.

Validate laboratory measurements

Recalculate recorded runs consistently in metres and flag trials whose wavelength differs strongly from the others.

Which units should I enter?

Enter fringe spacing, slit separation, and screen distance in metres. Results are returned in metres, nanometres, and micrometres.

Should I measure bright or dark fringes?

Either adjacent bright fringes or adjacent dark fringes have the same ideal spacing. Measure between equivalent fringe centres.

Can I measure across several fringes?

Yes. Measure between two well-separated equivalent fringes, count the intervals between them, and divide the distance by that interval count.

When is the small-angle formula accurate?

It is most accurate near the central axis when the screen distance is much larger than the slit separation and fringe displacement.

How much does an API calculation cost?

The API base price is $0.002 per calculation. The browser calculator can be run free on the capability page.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/optics/wavelength-from-double-slit

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/optics/wavelength-from-double-slit \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fringe_spacing":0.0042,"slit_separation":0.00025,"screen_distance":1.5}'
{
  "fringe_spacing": 0.0042,
  "slit_separation": 0.00025,
  "screen_distance": 1.5
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "optics.wavelength_from_double_slit",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →