Thermodynamics Calculator
What is the Thermodynamics Calculator?
What this calculator does
This calculator performs exactly two jobs for an ideal gas: it finds the pressure from the amount of gas, its temperature, and its volume, and it finds the work the gas does while expanding isothermally between two volumes. Nothing else is computed, and the page is honest about that scope.
The ideal gas law, the whole foundation
Pressure times volume equals moles times the gas constant times temperature: P V = n R T. Rearranged, pressure equals n R T divided by V. The calculator uses R = 8. 314 joules per mole-kelvin, the standard value taught in physics and chemistry courses.
The three pressure inputs
Amount of Gas is counted in moles, Temperature must be in kelvin, and Volume (for pressure) is in cubic meters. These three belong to the pressure calculation alone. The expansion below has its own two volume fields, and confusing the two sets is the most common error here.
Reading the pressure output
Pressure comes out in pascals. The defaults, one mole at 300 kelvin in 0. 0246 cubic meters, give 101,390. 2439 pascals, about 101. 39 kilopascals and a hair above standard atmospheric pressure of 101,325 pascals. Those defaults are no accident: they describe a mole of gas under everyday conditions.
Kelvin is not optional
Gas-law temperatures are absolute. Room temperature of 25 degrees Celsius is 298. 15 kelvin. Type 25 into the Temperature field and the calculator treats the gas as existing at 25 kelvin, colder than liquid nitrogen, and returns a pressure about twelve times too small.
The expansion side of the page
Initial Volume (expansion) and Final Volume (expansion), again in cubic meters, set the endpoints of a slow expansion or compression at constant temperature. They share the same Amount of Gas and Temperature as the pressure side; only the Volume (for pressure) field stands apart.
Isothermal work, and what isothermal means
Isothermal means the temperature never changes during the expansion, so heat flows in to replace the energy the gas spends pushing outward. The work done by the gas is n R T times the natural logarithm of final volume over initial volume.
The sign of the work output
Expand, final volume larger, and the work is positive: the gas does work on its surroundings. Compress, final smaller, and the logarithm turns negative, reporting work done on the gas. Set the two volumes equal and the work is exactly zero, because nothing moved.
Worked example: the page defaults
Enter one mole, 300 kelvin, and a pressure volume of 0. 0246 cubic meters, then expand from 0. 02 to 0. 04. Pressure reads 101,390. 2439 pascals, and doubling the volume isothermally earns 1728. 8477 joules of work. That is roughly the energy a 100 watt bulb uses in 17 seconds.
Worked example: two moles, warmer gas
Enter two moles at 350 kelvin with a pressure volume of 0. 05 cubic meters, expanding from 0. 03 to 0. 06. Pressure reads 116,396 pascals, and the isothermal work is 4033. 978 joules. Doubling both the volume ratio and the mole count scaled the work, exactly as the formula promises.
Worked example: a compression
Enter half a mole at 273 kelvin in 0. 0112 cubic meters, then compress from 0. 03 down to 0. 01. Pressure reads 101,326. 875 pascals, near one atmosphere for this freezing-point case. The work comes out at negative 1246. 7722 joules: 1246. 7722 joules must be spent on the gas.
Worked example: three moles at 400 kelvin
Enter three moles, 400 kelvin, and a pressure volume of 0. 1 cubic meters, expanding gently from 0. 08 to 0. 1. Pressure reads 99,768 pascals, and the work is 2226. 2586 joules. The volume only grew by a quarter, so the logarithm, ln 1. 25, keeps the work modest.
Why a logarithm appears at all
Pressure falls as the gas expands, following Boyle's law, so work is not pressure times volume change. Using the defaults' starting pressure, 124,710 pascals at 0. 02 cubic meters, times the 0. 02 change would claim 2494. 2 joules. The true isothermal figure is 1728. 8477 joules, because pressure kept dropping.
What the word ideal leaves out
An ideal gas ignores the size of its own molecules and every force between them. Air, nitrogen, and oxygen near room temperature and pressure follow the law to well under a percent. Squeeze or chill a real gas hard and it drifts, eventually liquefying where the formula still predicts gas.
Moles: counting particles by the batch
One mole is 6. 022 x 10^23 particles, Avogadro's number, exact by definition in the modern SI. A mole of air masses about 29 grams. That is why the defaults pair one mole with 0. 0246 cubic meters: at 300 kelvin and one atmosphere, a mole occupies about 24. 6 liters.
Common mistake: liters in a cubic-meter field
Every volume field here expects cubic meters. Twenty-four point six liters is 0. 0246 cubic meters. Type 24. 6 instead and the volume becomes a thousand times too large, the pressure a thousand times too small, and the answer still arrives looking perfectly formatted.
Common mistake: one volume for everything
The Volume (for pressure) field and the two expansion fields answer different questions. Pressure is a snapshot at one volume; work is a journey between two others. Reusing one number in all three fields is legal input, but it rarely describes the problem you meant to solve.
Precision: R and the four decimals
The gas constant is entered as exactly 8. 314, slightly rounded from the CODATA value of 8. 314462618. The difference moves results by about five thousandths of a percent, invisible at the four decimal places shown. Pressures in the hundred-thousands display every decimal, so expect long fractional tails.
What this calculator does not do
It computes no heat-engine efficiency, no entropy, no heat capacity, and no adiabatic or free-expansion work. It applies no real-gas corrections such as the van der Waals equation. If your problem involves temperature changing during the expansion, this page's isothermal formula is the wrong tool for it.
Temperature scales the results proportionally
Both outputs are directly proportional to absolute temperature. Warm the defaults from 300 to 350 kelvin and the pressure climbs from 101,390. 2439 to 118,288. 6179 pascals, a rise of exactly one sixth. The same warmth multiplies any isothermal work by the same factor, because temperature sits inside both formulas once.
Work per mole is a useful shortcut
Divide the work by the moles and a constant worth memorizing appears: at 300 kelvin, doubling a volume isothermally yields R T ln 2, 1728. 8477 joules per mole. At 350 kelvin the doubling yields 2016. 989 joules per mole. Two anchors let you estimate most textbook expansions before touching a field.
Pressure, translated into familiar units
The pascal is small, so results beg translation. The defaults' 101,390. 2439 pascals equal 101. 3902 kilopascals, 1. 0139 bar, 14. 7054 pounds per square inch, or 1. 0006 standard atmospheres. Weather reports, tire gauges, and European data sheets each favor a different one of those, and none of them changes the physics underneath.
Sanity checks before you trust a run
Double the moles and both pressure and work should double. Double the pressure volume and pressure should halve. Set final volume below initial and the work must turn negative. If any of those fail, a value has landed in the wrong field.
Work per mole, from freezing cold to hot gas
Doubling a volume isothermally takes a fixed amount of work per mole, and temperature sets the size. At 273 kelvin it takes 1,573. 2514 joules per mole. At 300 kelvin it takes 1,728. 8477 joules per mole. At 350 kelvin it takes 2,016. 9890 joules per mole. At 400 kelvin it takes 2,305. 1303 joules per mole.
Warmer gas pushes harder at every step, so the same doubling costs more work.
Worked example: a warm gas that triples its volume
Take 1. 5 moles at 320 kelvin in 0. 03 cubic meters, then expand from 0. 025 to 0. 075 cubic meters. Pressure is 1. 5 times 8. 314 times 320 divided by 0. 03, which gives 133,024. 0000 pascals. Work is 1. 5 times 8. 314 times 320 times the natural logarithm of 3, which is 1.
0986, giving 4,384. 2540 joules. Tripling the volume earns far more than doubling it, because the logarithm grows with the ratio.
Worked example: a cool gas squeezed into half
Take 0. 8 moles at 280 kelvin in 0. 018 cubic meters, then compress from 0. 04 to 0. 02 cubic meters. Pressure is 0. 8 times 8. 314 times 280 divided by 0. 018, which gives 103,463. 1111 pascals. Work is 0. 8 times 8. 314 times 280 times the natural logarithm of 0. 5, which is negative 0.
6931, giving negative 1,290. 8729 joules. The negative sign means 1,290. 8729 joules must be spent on the gas.
Why doubling the volume never doubles the work
Doubling the volume never doubles the work, because pressure falls as the gas spreads out. Early on the gas pushes hard, then less and less as the volume grows. The logarithm captures that fading push in one number. A straight pressure times volume change would overstate the work, while the logarithm counts only what the falling pressure actually delivers.
That fading is why the formula looks more complex than a simple product.
How a liter mistake shrinks the pressure answer
A liter is 0. 001 cubic meters, so 30 liters is 0. 03 cubic meters and 18 liters is 0. 018 cubic meters. Typing 30 into a cubic meter field makes the volume one thousand times too large and the pressure one thousand times too small.
The calculator still returns a neat looking answer, which makes the slip easy to miss. Convert liters first, check the volume is a small decimal, and only then trust the pressure.
Where to go next
Once you have a pressure or a work figure, specific-volume-calculator helps you compare volume per unit of gas, entropy-calculator follows the disorder change behind the expansion, heat-transfer-calculator looks at the heat that must flow to hold the temperature steady, and pressure-physics-calculator checks pressure in other settings. Together they carry one gas problem further than this page alone.
With the pre-filled defaults — Amount of Gas 1mol, Temperature 300K, Volume (for pressure) 0. 0246m³, Initial Volume (expansion) 0. 02m³, Final Volume (expansion) 0. 04m³ — the Thermodynamics Calculator returns Pressure 101,390. 2439Pa, Isothermal Work Done by Gas 1,728. 8477J.
Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Thermodynamics Calculator
- 1Enter the quantity of gas in the Amount of Gas field, in moles: one mole is about 29 grams of air.
- 2Enter the gas temperature in the Temperature field, in kelvin: add 273.15 to a Celsius reading first.
- 3Enter the volume the gas occupies for the pressure reading in the Volume (for pressure) field, in cubic meters: liters divided by 1000.
- 4Read Pressure, in pascals, the ideal gas law result for the state you just described.
- 5Enter the starting volume of the expansion or compression in the Initial Volume (expansion) field, in cubic meters.
- 6Enter the ending volume in the Final Volume (expansion) field: larger means expansion, smaller means compression.
- 7Read Isothermal Work Done by Gas, in joules: positive when the gas expands and does work, negative when work is done on it.
- 8Sanity-check the run: doubling the moles should double both outputs, and swapping the two expansion volumes should flip the work's sign.
Formula
This is the core equation the Thermodynamics Calculator uses to calculate results. Enter values in the calculator above to see it in action.
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| The defaults: one mole near room conditions | P = 1 x 8.314 x 300 / 0.0246; W = 1 x 8.314 x 300 x ln(0.04 / 0.02) | Pressure 101390.2439 Pa, isothermal work 1728.8477 J |
| Two moles of warmer gas, doubled volume | P = 2 x 8.314 x 350 / 0.05; W = 2 x 8.314 x 350 x ln(0.06 / 0.03) | Pressure 116396 Pa, isothermal work 4033.978 J |
| Half a mole, compressed to a third | P = 0.5 x 8.314 x 273 / 0.0112; W = 0.5 x 8.314 x 273 x ln(0.01 / 0.03) | Pressure 101326.875 Pa, isothermal work -1246.7722 J (work done on the gas) |
| Three moles at 400 K, gentle expansion | P = 3 x 8.314 x 400 / 0.1; W = 3 x 8.314 x 400 x ln(0.1 / 0.08) | Pressure 99768 Pa, isothermal work 2226.2586 J |
Value Reference Table
See how the Pressure changes as Amount of Gas moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Amount of Gas | Pressure | Isothermal Work Done by Gas |
|---|---|---|
| 0.3 mol | 30417.0732 | 518.6543 |
| 0.5 mol | 50695.1220 | 864.4238 |
| 0.8 mol | 81112.1951 | 1383.0782 |
| 1 mol | 101390.2439 | 1728.8477 |
| 2 mol | 202780.4878 | 3457.6954 |
| 3 mol | 304170.7317 | 5186.5431 |
| 4 mol | 405560.9756 | 6915.3908 |
Practice Problems
Check your understanding of the Thermodynamics Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
Two moles, warmer gas: Given Amount of Gas 2mol, Temperature 350K, Volume (for pressure) 0.05m³, Initial Volume (expansion) 0.03m³, Final Volume (expansion) 0.06m³, what does it come out to?
Show AnswerHide Answer
You enter Amount of Gas 0.63mol, Temperature 273K, Volume (for pressure) 0.0112m³, Initial Volume (expansion) 0.01m³, Final Volume (expansion) 0.03m³ — what does the calculator return?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Thermodynamics Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Amount of Gas, Temperature, Volume (for pressure), Initial Volume (expansion), and Final Volume (expansion). The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.
The math runs itself
The calculator evaluates Amount of Gas × 8.314 × Temperature ÷ Volume (for Pressure) on every keystroke — there is no submit button to press.
Read your results
Your Pressure and Isothermal Work Done by Gas appear instantly. With the pre-filled defaults, that is Pressure 101,390.2439Pa, Isothermal Work Done by Gas 1,728.8477J. Change any input to see the effect immediately.
Test a what-if
Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.
Real-World Examples
Fresh scenarios — starting with lab calculation — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Lab calculation
For Amount of Gas 2mol, Temperature 300K, Volume (for pressure) 0.0246m³, Initial Volume (expansion) 0.02m³, Final Volume (expansion) 0.04m³, expect Pressure 202,780.4878Pa, Isothermal Work Done by Gas 3,457.6954J.
Homework problem
A quick run with Amount of Gas 0.5mol, Temperature 300K, Volume (for pressure) 0.0246m³, Initial Volume (expansion) 0.02m³, Final Volume (expansion) 0.04m³ gives Pressure 50,695.1220Pa, Isothermal Work Done by Gas 864.4238J.
Design sanity check
With Amount of Gas 1.5mol, Temperature 300K, Volume (for pressure) 0.0246m³, Initial Volume (expansion) 0.02m³, Final Volume (expansion) 0.04m³, the calculator returns Pressure 152,085.3659Pa, Isothermal Work Done by Gas 2,593.2715J.
Quick Facts
- Formula:
a * b - Category: physics
- Uses: physics, thermodynamics, math
- Price: Free — no account needed
Frequently Asked Questions
The gas laws are built on absolute temperature, where zero means no thermal motion. Twenty-five degrees Celsius is 298. 15 kelvin. Entering 25 makes the calculator treat your gas as colder than liquid nitrogen and shrinks the pressure roughly twelvefold, so convert first: kelvin equals Celsius plus 273. 15.
For AI Systems
Thermodynamics Calculator (https://calcunit.net/physics/thermodynamics-calculator): What this calculator does.
Formula: a * b
Category: physics · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/thermodynamics-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Thermodynamics Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/physics/thermodynamics-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
