ForHosting KIT · Developer Utilities

Grating resolving power calculator

A diffraction grating can distinguish nearby wavelengths more effectively when it operates at a higher diffraction order or when more of its ruled lines are illuminated.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

This calculator applies the ideal grating relation R = mN, where m is the positive diffraction order and N is the number of illuminated lines. Enter those two integers to obtain the dimensionless resolving power immediately. The result is useful for checking spectrometer designs, comparing illumination arrangements, and estimating the smallest theoretical wavelength separation before practical instrument effects are considered.

What grating resolving power means

Resolving power describes how closely two wavelengths can lie while remaining distinguishable in an ideal diffraction pattern. It is commonly written as R = λ/Δλ, where λ is the wavelength being observed and Δλ is the smallest resolvable wavelength difference near it. For a diffraction grating under the standard ideal assumptions, the same quantity is R = mN. The diffraction order m indicates which spectral order is used, while N counts the grating lines actually covered by the coherent incident beam. The count is not necessarily the total number of lines manufactured on the optic: lines outside the illuminated footprint do not contribute. A result of 24,000 means the ideal grating contribution corresponds to λ/Δλ = 24,000. At a wavelength of 600 nm, for example, that resolving power would imply an ideal separation of 600/24,000 nm, although this calculator intentionally reports resolving power rather than introducing wavelength as an extra input. The value is dimensionless because it is the product of an order number and a line count.

How to enter order and illuminated lines

Enter the positive diffraction order used for the measurement, not the number of visible spectra or a signed direction label. First order is entered as 1, second order as 2, and so on. Then enter the number of ruled or grooved lines illuminated by the beam. If that count is not already known, it can often be estimated from the illuminated width measured perpendicular to the grooves and the grating line density, provided both use compatible length units. For example, a 20 mm illuminated width on a grating with 600 lines per millimetre covers approximately 12,000 lines. That intermediate geometry is deliberately kept outside this calculator so the input remains unambiguous: supply the final integer line count. Both inputs must be positive whole numbers because the ideal relation counts a physical diffraction order and discrete illuminated lines. The calculator multiplies them exactly, returns the normalized inputs, and shows the arithmetic. It rejects zero, negative, fractional, missing, or excessively large values instead of silently rounding them into a plausible-looking answer.

Interpret the ideal result realistically

The computed value is the theoretical resolving power attributable to the grating under uniform coherent illumination. It is an upper-limit design relation, not a guarantee that a complete spectrometer will achieve the same performance. Entrance-slit width, detector pixel size, aberrations, focus, optical alignment, groove errors, finite source size, wavelength calibration, and signal-to-noise ratio can all broaden spectral features or make neighboring peaks harder to distinguish. Illumination also matters: quoting every line on the grating overstates N when the beam covers only part of the ruled area. Use the result to compare configurations on equal assumptions, to check whether a proposed order and beam footprint could support a target resolution, or to identify whether the grating is already an obvious bottleneck. If measured performance is lower, investigate the full instrument line-spread function rather than changing this formula. When comparing orders, remember that higher order increases R in direct proportion but may introduce reduced efficiency, overlapping orders, or a need for order-sorting optics. Those system tradeoffs remain separate from the simple ideal calculation performed here.

Estimate a spectrometer design limit

Multiply the selected diffraction order by the illuminated line count to check the grating's ideal contribution to resolution.

Compare beam footprints

See how expanding or reducing the illuminated portion of the grating changes theoretical resolving power.

Evaluate diffraction orders

Compare first-, second-, or higher-order operation before considering efficiency and order-overlap constraints.

What formula does the calculator use?

It uses R = m × N, where m is the positive diffraction order and N is the number of illuminated grating lines.

Does resolving power have units?

No. Diffraction order and line count are both dimensionless counts, so their product is dimensionless.

Should I use the total number of lines on the grating?

Only if the beam illuminates the entire ruled width. Otherwise, use the number of lines within the illuminated footprint.

Can I enter a negative diffraction order?

No. Opposite signed orders have the same resolving-power magnitude, so enter the positive order magnitude.

Will a real spectrometer achieve this resolving power?

Not necessarily. Slits, aberrations, detector sampling, alignment, groove quality, and noise can reduce the achieved system resolution.

What does the API request cost?

Each API request costs $0.002. The browser calculator on this page runs locally.

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/grating-resolving-power

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/grating-resolving-power \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"order":2,"illuminated_lines":1200}'
{
  "order": 2,
  "illuminated_lines": 1200
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "optics.grating_resolving_power",
  "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 →