ForHosting KIT · Science

Knudsen number calculator

Sea-level air, whose molecules travel about 65 nm between collisions, flowing in a 1 mm channel gives a Knudsen number of 0.000065: plainly continuum flow. Divide that path length by the size of the gap, pore or nozzle to see when ordinary flow models stop working. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Mean free path
0.000000065
Characteristic length
0.001
You get
Knudsen number
0.000065
Kn
0.000065
Regime hint
continuum

The Knudsen number is the dimensionless ratio of a gas molecule's mean free path to a characteristic geometric length of the apparatus — a channel height, pore diameter, nozzle throat, or particle size. When that ratio is tiny, intermolecular collisions dominate and continuum Navier–Stokes models remain valid; when it is large, molecules travel ballistically and free-molecular kinetic theory is required.

What Kn = λ/L means and which two lengths you must send

The Knudsen number, written Kn, is defined as the molecular mean free path λ divided by a characteristic length L of the flow or of the hardware. Mean free path is the average distance a molecule travels between successive collisions; it grows when pressure falls or when the gas is rarefied, and it shrinks in dense air at sea level, where λ is of order sixty-five nanometres.

Characteristic length is the scale that sets the geometry: hydraulic diameter of a microchannel, gap of a MEMS accelerometer, pore size of a membrane, throat of a vacuum nozzle, or radius of an aerosol particle. Search intent clusters around knudsen number calculator, Kn equals lambda over L, rarefied gas flow, continuum versus free molecular regime, MEMS vacuum design, and mean free path over characteristic length.

People want a numeric Kn they can pin against a worksheet, a vacuum-system sketch, or a Direct Simulation Monte Carlo setup — not only a reminder that the formula exists. Units stay consistent with whatever coherent length basis you chose: metres with metres, nanometres with nanometres, or micrometres with micrometres all yield a true dimensionless Kn; mixing metres with millimetres without converting first produces a meaningless ratio rather than a textbook Knudsen number.

Homework and rarefied-gas lab checks

Students and graders confirm dimensionless Kn from mean free path and channel size, with clear rejection when characteristic length is zero or negative.

Quick continuum versus free-molecular sketches

Engineers and educators get structured Kn plus a soft regime hint for MEMS gaps, pores, and vacuum ducts without standing up a Boltzmann or DSMC stack.

Is the Knudsen number calculator free?

The browser tool runs free on your device.

Which units should I use?

Any coherent pair of lengths works. SI is common: metres for both λ and L. Mixing inconsistent units without converting produces a meaningless number, not a true dimensionless Kn.

What do the continuum, slip and transitional labels mean?

At a very small Knudsen number collisions between molecules dominate and ordinary continuum flow equations work. At a large one molecules fly ballistically and kinetic theory is needed; slip and transitional flow sit in between.

Which length should I use as the characteristic length?

The size that sets the geometry: the height or hydraulic diameter of a microchannel, the gap of a micro device, the pore size of a membrane, a nozzle throat, or the radius of an aerosol particle.

What happens if the characteristic length is zero or negative?

The calculation is refused, because the ratio is undefined without a positive length. A molecular path length of zero, on the other hand, is accepted and gives a Knudsen number of zero.

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/phys/knudsen-number

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/phys/knudsen-number \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mean_free_path":6.5e-8,"characteristic_length":0.001}'
{
  "mean_free_path": 6.5e-8,
  "characteristic_length": 0.001
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "phys.knudsen_number",
  "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.

This calculator accepts a molecular mean_free_path λ and a strictly positive characteristic_length L, returns knudsen_number equal to λ divided by L, and labels the usual continuum, slip, transitional, and free-molecular bands as an educational regime_hint. Zero or negative characteristic length is rejected as invalid_input because the ratio is then undefined. Successful API calls cost $0.002.

What Kn = λ/L means and which two lengths you must send

Delivering mean_free_path, characteristic_length, knudsen_number, Kn, formula, method, and regime_hint as JSON makes the result easy to paste into notes, diff in automated tests, or reuse across languages without reimplementing the division.

How this calculator validates input and applies Kn = λ/L

Numeric strings that parse to finite numbers are accepted so forms and CSV-style pipelines can pass values without an extra cast. Mean free path must not be negative: a negative collision length is unphysical, while a zero mean free path is allowed and yields Kn equals zero, the deep continuum limit. There is no unit-conversion service, no kinetic-theory solver, and no temperature-dependent collision table; this is the definitional ratio Kn equals λ over L from two known lengths. Send a JSON body with required fields mean_free_path and characteristic_length. Every field must be finite: missing fields, empty strings, non-numeric text, NaN, and Infinity all fail immediately with invalid_input before any result is returned, and failed validation is not charged. Aliases are supported: lambda, mfp, and molecular_mean_free_path for mean_free_path; length, L, char_length, hydraulic_diameter, and gap for characteristic_length. Characteristic length must be strictly positive: zero or negative L is always rejected as invalid_input because division by a non-positive length is undefined and the Knudsen model collapses. After validation, the engine divides mean free path by characteristic length and rounds to a stable twelve-decimal precision so the same input always yields the same JSON across JavaScript engines. A soft regime_hint labels common rarefied-gas bands — Kn below about 0.01 as continuum, from 0.01 up to 0.1 as slip, from 0.1 up to 10 as transitional, and 10 and above as free_molecular — purely as an educational convenience; it is not a substitute for a full Boltzmann solver and does not replace engineering judgment for complex geometries. The same pure function powers the free in-browser tool and the API path.

Practical use, limits, pricing, and delivery channels

Use the browser tool when you want an immediate Kn equals lambda over L check while grading a rarefied-gas homework, verifying a MEMS vacuum gap, sketching whether a vacuum duct is continuum or free-molecular, or sanity-checking the non-dimensional inputs of a DSMC simulation. There is no language model, no external collision-property service, and no randomness, so the capacity is safe to pin in continuous-integration checks and reproducible lesson materials. Each successful request is one billable item at $0.002; failed validation does not consume balance. Choose units consistently — if mean_free_path is in metres, characteristic_length must also be in metres so Kn is dimensionless and ready for textbook comparison. Results are fully deterministic: the same two inputs always yield the same knudsen_number, the same Kn alias, and the same formula and method labels. Wire the endpoint into gas-dynamics drills, contest answer checkers, MEMS sketch tools, or preprocessing steps where you already prefer explicit domain errors — such as rejecting zero or negative characteristic length — over opaque black-box widgets that cannot explain why a bad input was refused. Keep both lengths coherent, pin the rounded knudsen_number in tests, and you get a reproducible rarefied-gas dimensionless group without standing up kinetic-theory infrastructure of your own.

Deterministic fixtures for vacuum and MEMS tests

Pipelines that seed unit tests or interactive science demos can call a pure Kn=λ/L oracle instead of reimplementing Knudsen arithmetic in every language.

How do I calculate the Knudsen number with this tool?

Send JSON with mean_free_path and characteristic_length (for example λ=6.5e-8 m and L=0.001 m for air-like mean free path in a millimetre channel). The response includes knudsen_number (and Kn), formula Kn=λ/L, and a soft regime_hint.

What happens if the characteristic length is zero or negative?

The request fails with invalid_input. Kn=λ/L is undefined when L is not strictly positive; the engine rejects it and does not charge the call.

Is Kn the same as the regime_hint field?

No. knudsen_number is the exact dimensionless value. regime_hint is only an educational rarefied-gas band (continuum / slip / transitional / free_molecular) and is not a full kinetic-regime classifier.

Read the full KIT documentation →