ForHosting KIT · Developer Utilities

Dry air density calculator

This dry air density calculator converts absolute pressure and absolute temperature into density using the ideal gas law and the specific gas constant for dry air.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Enter pressure in pascals and temperature in kelvin to receive density in kilograms per cubic metre, together with the constant and formula used. It is useful for engineering estimates, atmospheric comparisons, ventilation calculations, and classroom work where humidity is intentionally excluded. The calculation is deterministic, runs without network data, and rejects temperatures at or below absolute zero.

Enter absolute pressure and temperature in the stated units

Start with the absolute pressure of the air in pascals and its absolute temperature in kelvin. Absolute pressure is measured relative to a perfect vacuum, so a common sea-level reference is about 101325 Pa; gauge pressure from an instrument must first be converted to absolute pressure. Kelvin is required because the ideal gas relationship depends on distance from absolute zero, not distance from the freezing point of water. A Celsius reading can be converted by adding 273.15 before submitting it. For example, 15 degrees Celsius becomes 288.15 K. Keep the pressure and temperature observations representative of the same air sample and moment, especially when conditions change quickly. The calculator checks that both values are finite, rejects negative absolute pressure, and produces a clear input error when temperature is zero or negative. This strict temperature rule prevents division by zero and excludes physically meaningless negative absolute temperatures from an ordinary dry-air calculation. Do not enter relative humidity, dew point, or water-vapour pressure: this capability deliberately models dry air only.

Understand the ideal-gas calculation and its assumptions

The calculator applies rho = p divided by R_d times T, where rho is density, p is absolute pressure, T is absolute temperature, and R_d is the specific gas constant for dry air. It uses R_d = 287.05 joules per kilogram-kelvin. With pressure in pascals and temperature in kelvin, the resulting density is expressed in kilograms per cubic metre. Density rises in direct proportion to pressure when temperature stays fixed, because more air mass occupies the same volume. Density falls as temperature rises at fixed pressure, because warmer air expands. The model treats dry air as an ideal gas with a fixed composition, which is a strong practical approximation for many ambient engineering conditions. It does not correct for humidity, unusually high pressures, composition changes, or real-gas compressibility. Those effects matter when precision requirements are tight or conditions depart substantially from ordinary atmospheric ranges. The returned object includes the normalized inputs, the constant, the formula label, and the computed density, making the result straightforward to audit or store alongside a calculation record.

Use the result responsibly in engineering and atmospheric work

Dry-air density is an input to many secondary calculations, including aerodynamic force, buoyancy estimates, fan and duct performance, mass flow, and corrections for instruments that respond to air mass rather than volume. Use the returned kilograms-per-cubic-metre value only where the downstream equation expects SI density. If another calculation expects pounds per cubic foot, convert the density afterward instead of mixing pressure or temperature units in this formula. Remember that outdoor and indoor air normally contains water vapour. Moist air at the same pressure and temperature is generally less dense than dry air, so this result is a dry reference rather than a humidity-adjusted measurement. Weather-station pressure may also be reported after adjustment to sea level; for local density, use actual station pressure at the measurement elevation rather than a normalized forecast value. Round only at the end of a longer workflow to avoid accumulating unnecessary error. For automated use, each API request costs $0.002; the browser calculation uses the same deterministic core. Treat the result as an engineering estimate and select a more detailed moist-air or real-gas model when project tolerances require those corrections.

Estimate aerodynamic conditions

Convert measured pressure and temperature into a dry-air density input for lift, drag, or dynamic-pressure calculations.

Check ventilation and mass flow

Relate an SI volumetric airflow to an approximate dry-air mass flow under the observed operating conditions.

Compare atmospheric environments

Quantify how dry-air density changes between pressure and temperature scenarios without adding a humidity model.

What formula does the calculator use?

It uses rho = p / (R_d × T), the ideal gas law written with the specific gas constant for dry air.

Which units should I enter?

Enter absolute pressure in pascals and absolute temperature in kelvin. The density result is in kilograms per cubic metre.

Which dry-air gas constant is used?

The calculation uses 287.05 J/(kg·K) as the fixed specific gas constant for dry air.

Does this account for humidity?

No. It intentionally calculates dry-air density. Use a moist-air model when water vapour must be included.

Why must temperature be greater than zero?

The formula divides by absolute temperature. Zero would cause division by zero, and negative kelvin is outside this model.

What does an API request cost?

Each API request costs $0.002. The calculator can also run in the browser.

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/earth/air-density-dry

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/earth/air-density-dry \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pressure":101325,"temperature":288.15}'
{
  "pressure": 101325,
  "temperature": 288.15
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "earth.air_density_dry",
  "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 →