An isothermal process holds the temperature still while the volume changes, so the gas travels the curve PV = nRT = constant and the work it does is the area underneath. This free isothermal process calculator returns that work, W = nRT ln(V2/V1), and rearranges the same relation for either volume, the amount of gas or the temperature. Beside the answer it prints the heat, the entropy change, both pressures and the two ratios, all from R = 8.314 J/(mol·K).
Each button points the Solve for menu at the unknown its own case is asking about, sets every unit menu it names and fills the remaining boxes. Whatever the widget then works out is read back into the line underneath, so nothing there is stored text. Run the last four in order for a closed round trip: the work that comes out of The classic doubling goes back in and returns the volume, the amount and the temperature it started from.
Pick a case above, or type your own numbers.

The isothermal process calculator is a free online tool for the work a gas does while its temperature is held still. Type the amount of gas, the temperature and the two volumes and it returns W = nRT ln(V2/V1), the area under the curve PV = nRT, together with the heat, the entropy change, the pressure before and after and both ratios. Point the Solve for menu at any of the other four quantities instead and it rearranges the same relation, so a known work gives back either volume, the amount of gas or the temperature, declining rather than inventing an answer when equal volumes leave the question with no single solution.
The temperature box takes kelvin, degrees Celsius or degrees Fahrenheit and converts before it multiplies, which matters more here than in a gas law written as a ratio: the temperature is a prefactor, so at 0 degrees Celsius the unconverted shortcut returns exactly zero work and below it the sign reverses. This page rounds the gas constant to four figures, R = 8.314 J/(mol·K), so its opening state reads 1728.85 J where the SI 2019 value 8.314462618 would give 1728.94 J.
| Symbol | Quantity | Default unit | Also accepts | Example value |
|---|---|---|---|---|
| n | Amount of gas | mol | mmol, kmol | 1.00 |
| T | Temperature | K | °C, °F | 300 |
| V1 | Volume before | L | mL, m³ | 10.0 |
| V2 | Volume after | L | mL, m³ | 20.0 |
| W | Work done by the gas | J | kJ, cal | 1728.848 |
nRT divided by a volume, so P1/P2 works out as V2/V1 exactly, the same way up. Each chip is rounded to four figures on its own, so the printed pair can still part company in the last digit — on the 5,261,100-state grid swept for the section on rounded figures below, it does so in 4,508 of them, 0.09 %. That is the curve being named rather than the tool checking itself, so neither chip is a verification of the other.nRT and the logarithm separately and then multiply them. Each reverse mode also prints a check forwards, so a rounded work can be compared against the work its own answer would produce.Three calculators here already own the neighbouring questions, and none of them can answer this one. The first law of thermodynamics calculator balances the energy ledger once two of its three terms are known, but it has no idea where a work came from; the Boyle’s law calculator finds where the gas ends up and never costs the journey; and the entropy change calculator needs a heat handed to it. Each is the right tool for its own job, and this is the only page on the site that turns two volumes and a temperature into a quantity of work.
For the derivation, the diagrams and eight worked problems, the guide to the isothermal process is the companion piece to this tool. If PV = constant is itself the unfamiliar part, the complete guide to the gas laws sets out where that relation comes from and how it sits beside the other three.
Two mistakes account for most wrong answers. The first is typing a Celsius figure into a box left on kelvin, which is quantified below and is worse here than in any ratio law; the second is reading a negative work as an error rather than as a compression, when the sign is the whole point of the convention this page uses.
1728.85 J headline and the 1728.85 J heat chip are the same number because the internal energy chip reads exactly 0 J — and the 5.763 J/K entropy chip would be unchanged at any temperature, because it depends on the 2.000 ratio alone.The table starts at the defaults and moves one thing at a time: the direction, the temperature, the amount, then which quantity is the unknown, then the unit the figures are typed in, and finally the entries the calculator declines. Rows 7 to 10 are the closed round trip, so the work that leaves row 1 comes back in and returns the volume, the amount and the temperature it started from. Every Result, Heat and Entropy cell was read out of the running widget rather than worked out by hand, so where a cell and the tool ever part company, believe the tool.
| Step | Solving for | What you type | Result | Heat absorbed | Entropy change |
|---|---|---|---|---|---|
| The page as it opens | Work done by the gas | 1.00 mol, 300 K, 10.0 to 20.0 L | 1728.85 J | 1728.85 J | 5.763 J/K |
| Squeeze it back instead | Work done by the gas | 1.00 mol, 300 K, 20.0 to 10.0 L | -1728.85 J | -1728.85 J | -5.763 J/K |
| Nothing moves at all | Work done by the gas | 1.00 mol, 300 K, 10.0 to 10.0 L | 0 J | 0 J | 0.000 J/K |
| Twice as hot, same ratio | Work done by the gas | 1.00 mol, 600 K, 10.0 to 20.0 L | 3457.7 J | 3457.7 J | 5.763 J/K |
| Squeezed to a third | Work done by the gas | 2.00 mol, 350 K, 15.0 to 5.00 L | -6393.7 J | -6393.7 J | -18.27 J/K |
| The same expansion, typed in Celsius | Work done by the gas | 1.00 mol, 27.0 °C, 10.0 to 20.0 L | 1729.71 J | 1729.71 J | 5.763 J/K |
| How far must it expand? | Volume after | 2.00 mol, 300 K, 10.0 L, 5000 J | 27.2461 L | 5000 J | 16.67 J/K |
| Where did it start? | Volume before | 1.00 mol, 300 K, 20.0 L, 1728.848 J | 10 L | 1728.85 J | 5.763 J/K |
| How much gas is there? | Amount of gas | 300 K, 10.0 to 20.0 L, 1728.848 J | 1 mol | 1728.85 J | 5.763 J/K |
| How hot was it? | Temperature | 1.00 mol, 10.0 to 20.0 L, 1728.848 J | 300 K | 1728.85 J | 5.763 J/K |
| The amount typed in millimoles | Work done by the gas | 1000 mmol, 300 K, 10.0 to 20.0 L | 1728.85 J | 1728.85 J | 5.763 J/K |
| Both volumes in cubic metres | Work done by the gas | 1.00 mol, 300 K, 0.01 to 0.02 m3 | 1728.85 J | 1728.85 J | 5.763 J/K |
| Absolute zero is refused | Work done by the gas | 1.00 mol, -273.15 °C, 10.0 to 20.0 L | no answer | — | — |
| One hundredth of a kelvin answers | Work done by the gas | 1.00 mol, -273.14 °C, 10.0 to 20.0 L | 0.0576283 J | 0.0576283 J | 5.763 J/K |
| No gas at all is refused | Work done by the gas | 0 mol, 300 K, 10.0 to 20.0 L | no answer | — | — |
| Equal volumes, solving for the amount | Amount of gas | 300 K, 10.0 to 10.0 L, 1728.848 J | no answer | — | — |
Rows 1 to 3 are one gas at one temperature going three ways. Doubling the volume gives 1728.85 J, halving it back gives -1728.85 J, and leaving the volume alone gives exactly 0 J with no heat and no entropy change. The negative figure is not an error message: the convention here is that a positive work is work done by the gas, so a compression has to come out negative.
Row 4 doubles the temperature and doubles the work, from 1728.85 J to 3457.7 J, while the entropy chip does not move at all. That pair is the most useful thing in the table. The work depends on the amount, the ratio and the temperature; the entropy change depends on the amount and the ratio only, so the same doubling of one mole is 5.763 J/K at 300 K, at 600 K and at 0.01 K.
Rows 5 and 6 change two different things. Two moles squeezed to a third of their volume at 350 K need -6393.7 J, which is 6393.7 J of work done on the gas and the same amount shed as heat. Row 6 is the same expansion as row 1 with the temperature typed as 27.0 °C, and the answer is 1729.71 J rather than 1728.85 J, because 27.0 °C is 300.15 K and not 300 K.
Rows 7 to 10 run the relation backwards in all four remaining modes. Two moles at 300 K have to reach 27.2461 L to do 5000 J, which is 2.7246 times the volume they started from. The last three take the 1728.848 J the opening state produces and return 10 L, 1 mol and 300 K exactly, which is what it means to say that one relation is being read five ways.
Rows 11 and 12 are the unit menus. 1000 mmol is the same gas as 1.00 mol, and 0.01 to 0.02 m3 is the same expansion as 10.0 to 20.0 L, so both reproduce row 1 to the last digit. The volume row would reproduce it even if the conversion were wrong in a consistent way, because the work depends on the ratio — but the pressure chips would not, and they are unchanged too.
Rows 13 to 16 are the edges of the domain. Exactly -273.15 °C is 0 K and is declined, while -273.14 °C is 0.01 K and answers 0.0576283 J, so the refusal sits at absolute zero rather than near it. Row 15 declines a gas that is not there, and row 16 declines the one question on this page that genuinely has no answer.
The calculator uses one relation in five arrangements. The path is P = nRT/V, so PV holds still at nRT; the work done by the gas is the area under that path between the two volumes, W = ∫P dV = nRT ln(V2/V1); and because the internal energy of an ideal gas depends on temperature alone, ΔU = 0 and the first law leaves Q = W. The entropy change is ΔS = nR ln(V2/V1), which is the same logarithm without the temperature in front of it.
Only one constant is typed into this page: R = 8.314 J/(mol·K), the four-figure rounding rather than the SI 2019 figure, and it is named because the choice shows in the last two digits of every answer. Calculators elsewhere on this site are not all built on that same rounding, so a last-digit difference between two pages is worth checking against the constant first. Everything else on screen is worked out from your four figures, which is why the reference below lists what each box takes as well as what it means. Pressures are absolute pressures, and the two volumes must describe the same gas.
The rearrangements are worth writing out, because each is the form one of the Solve for modes uses. Reading the work backwards gives V2 = V1exp(W/nRT) and V1 = V2exp(-W/nRT); dividing instead gives n = W/(RT ln(V2/V1)) and T = W/(nR ln(V2/V1)). Those last two are the reason equal volumes have no answer in two of the five modes, because both divide by a logarithm that is then zero.
| Symbol | Meaning | SI unit | Values used on this page |
|---|---|---|---|
| n | Amount of gas, held fixed for the whole change. It scales the work and the entropy change in direct proportion, so twice the gas is twice both of them | mole, mol | Boxes take mol, mmol or kmol: 1.00 on the opening case, 2.00 squeezed to a third, 3.00 hot and wide, and 1000 mmol is the same gas as 1.00 mol. |
| T | Absolute temperature, held fixed. It is a prefactor rather than one side of a ratio, which is why it must be absolute and why the 273.15 offset never cancels | kelvin, K | Boxes take K, degrees Celsius or degrees Fahrenheit: 300 on the opening case, 600 twice as hot, and 27.0 degrees Celsius is 300.15 K rather than 300 K. |
| V1 | Volume before the change. Only its ratio to the volume after decides the work, but its actual size decides the pressure before | cubic metre; litres on this page | Boxes take L, mL or m3: 10.0 on the opening case, 15.0 squeezed to a third, 0.01 m3 is the same as 10.0 L. |
| V2 | Volume after the change. Larger than the volume before is an expansion and the work is positive; smaller is a compression and the work is negative | cubic metre; litres on this page | Boxes take L, mL or m3: 20.0 on the opening case, 5.00 squeezed to a third, 27.2461 is the answer when 5000 J is asked for. |
| W | Work done BY the gas on its surroundings, and the area under the curve between the two volumes. Positive means the gas pushed outwards | joule, J | Boxes take J, kJ or cal: 1728.848 closes the round trip, 5000 asks how far the gas must expand. |
| Q | Heat drawn in from whatever holds the temperature still. Equal to the work because the internal energy does not change, and printed as a chip rather than typed | joule, J | Computed, never typed: 1728.85 J on the opening case, -6393.7 J when the gas is squeezed to a third. |
| dS | Entropy change of the gas. It depends on the amount and the volume ratio only, so it is the same at 100 K as at 800 K for the same expansion | joule per kelvin, J/K | Computed, never typed: 5.763 J/K for any doubling of one mole, -18.27 J/K squeezed to a third, 16.67 J/K on the 5000 J case. |
| R | Molar gas constant, typed into this page as 8.314 and never derived from anything else. The choice is visible in the last printed digits | joule per mole per kelvin | A constant: 8.314. The SI 2019 value 8.314462618 would return 1728.94 J rather than 1728.85 J on the opening case. |
Naming the curve is only half of an isothermal process. PV = constant tells you where the gas ends up, and that is the part the Boyle’s law calculator already does. What it does not tell you is what the journey cost, and that is an area rather than an end point.
Adding up P dV along the path means adding up nRT/V as the volume grows, and a sum of reciprocals is a logarithm. So the work is nRT ln(V2/V1), and the logarithm is not a convenience — it is why the returns diminish so sharply. Moving from a doubling to a twentyfold expansion is ten times as much room and buys only 4.3219 times the work, and to double the work you have to square the ratio rather than double it.
That the area and the logarithm agree is worth one sentence because it is the only non-circular check available here. Measuring the area under nRT/V numerically and comparing it with a single call to a logarithm are genuinely different computations, and across 6,352 combinations of the four inputs, spread over the whole range these boxes accept, the two never differ by more than one part in a thousand million. Watching PV come out the same at both ends is not a check of anything, because that is how both pressures were computed in the first place.
The same warning applies to the two ratio chips on this page. As quantities they are one number, because P1/P2 reduces to V2/V1 as an identity once both pressures come from nRT/V — the same way up, not inverted. As printed strings they are rounded to four figures separately, so on the 5,261,100-state grid described below their last digits differ in 4,508 states, 0.09 %. Neither chip is evidence for the other, and a last-digit mismatch is the rounding rather than a fault in the arithmetic.
The heat has no freedom at all here. For an ideal gas the internal energy depends on temperature alone, so holding the temperature still holds the internal energy still: ΔU = 0 is an identity rather than a result.
The first law then reads 0 = Q - W, which is why the heat chip repeats the headline exactly, and why every joule of work is paid for in real time by a joule flowing in from the reservoir. The guide to the first law of thermodynamics sets that ledger out in full, and the first law of thermodynamics simulator is the better tool when it is the heat you know and the volume you want.
The genuinely surprising result is what happens when you take the same two states by a different route. Let one mole at 300 K go from 10 L to 20 L against a piston and this page returns 1728.85 J of work and 1728.85 J of heat; let it rush into an empty vessel instead and it pushes against nothing, so both are zero. The end states are identical, ΔU is zero either way, and the entropy change of the gas is 5.763 J/K either way — because entropy and internal energy are state functions while work and heat are path functions.
Both halves of that have to be said together or the second law looks broken. The reversible expansion leaves the entropy of the universe unchanged, because the reservoir loses exactly the entropy the gas gains. The free expansion leaves the gas with the same 5.763 J/K and takes nothing from anywhere, so the entropy of the universe rises by that amount instead, which is what makes it irreversible.
Last, the temperature. Because T stands in front of the logarithm rather than inside a ratio, the 273.15 between Celsius and kelvin cannot cancel. At 27 °C the shortcut of typing 27 returns 155.596 J against a true 1729.71 J; at 0 °C it returns exactly zero, which is the worst kind of wrong answer because it looks like a statement about the gas; and below 0 °C it reverses the sign so an expansion is reported as a compression.
27.0 °C. The answer is 1729.71 J and not 1728.85 J, because 27.0 °C is 300.15 K — while the 5.763 J/K entropy chip has not moved, because the temperature never enters it.The arithmetic is exact to the last digit a double can hold. What fails is an ideal gas being mistaken for a real one, a path being assumed where there is none, or a temperature arriving in the wrong scale.
nRT/V and their products are nRT by construction. The second is that the products on screen do not always agree anyway: multiply out the rounded figures over a grid of 5,261,100 states spanning 0.1 to 5 mol, 100 to 800 K and 1.0 to 20.0 L and they disagree in about 6 % of them, because two decimals of a pressure and one of a volume are not enough to survive the multiplication. Your arithmetic is fine in those cases; the display is rounded.ln(V2/V1). Make the two volumes the same and that logarithm is zero, and the work is zero for every amount of gas and every temperature, so there is nothing in the data to single one out. The calculator declines rather than returning the enormous or infinite figure the arithmetic would otherwise produce. Solving for the work with equal volumes is a different matter and answers 0 J, because a gas that did not move really did no work.nRT ln(ratio) is irrational for every set of figures you can type.R = 8.314 J/(mol·K), the four-figure rounding, and not the SI 2019 figure. The exact value is 8.314462618, about 56 parts per million larger, and that is enough to matter at the precision printed here: the opening state returns 1728.85 J with the rounded constant and 1728.94 J with the SI one. Nothing site-wide follows from that choice, because several calculators here — the speed of sound page among them — are built on the SI figure instead. If your textbook, spreadsheet, lab sheet or another page disagrees with this one in the last two digits, check which constant it used before looking for a deeper cause.nRT ln(ratio) gives the minimum work to concentrate a solution or the maximum work available from letting it dilute, which is why the figure turns up in osmosis, in desalination and in electrochemical concentration cells. The volume ratio simply becomes a concentration ratio.
1 mol. This is the mode that declines equal volumes: with V2 set to 10.0 L the logarithm is zero and every amount of gas fits the data equally well, so there is no answer to give.For the method in full, with the curve drawn, the area shaded and eight worked problems, read what an isothermal process is and where the logarithm comes from. For the relation this path is built on, the guide to Boyle’s law is the companion piece, with the Boyle’s law calculator and the Boyle’s law simulator beside it.
Three more are worth a bookmark. The guide to entropy explains the 5.763 J/K chip and why it is the same at every temperature; the guide to the laws of thermodynamics puts all four in order; and the ideal gas law calculator handles a single state rather than a process. The whole physics lab library is open too, and the site search will find anything this page has not.
It works out the work done by a gas that expands or is squeezed while its temperature is held still, from the formula W = nRT ln(V2/V1). Enter the amount of gas, the temperature and the two volumes and it returns that work, along with the heat, the entropy change, the pressure before and after, the volume and pressure ratios and the temperature in degrees Celsius. Point the Solve for menu at any of the five quantities instead and it rearranges the same relation, so a known work can give you either volume, the amount of gas or the temperature.
An isothermal process is a change in which the temperature is held constant while other properties move. For an ideal gas that fixes the path: pressure times volume stays equal to nRT, so the gas travels along a hyperbola rather than a straight line, and the work it does is the area under that curve. Holding the temperature still takes a reservoir of some kind, because an expanding gas would otherwise cool as it worked.
Because the temperature here is a prefactor rather than one side of a ratio, so the 273.15 offset between Celsius and kelvin never cancels out. Typing 27 instead of 300.15 does not shift the answer by a little; it returns 155.596 J where the truth is 1729.71 J, an error of 91 per cent. At 0 degrees Celsius the shortcut returns exactly zero work, which looks like a real answer and is not, and below 0 degrees Celsius it reverses the sign so that an expansion is reported as a compression.
Because the internal energy of an ideal gas depends on its temperature alone, and an isothermal process holds the temperature still, so the internal energy does not change at all. The first law says that the internal energy change is the heat in minus the work out; with the first term identically zero, the heat in must equal the work out. That is the first law with one term removed rather than a coincidence, and it means every joule the gas does on its surroundings is paid for by a joule flowing in from whatever is holding the temperature.
The amount of gas takes moles, millimoles or kilomoles; the temperature takes kelvin, degrees Celsius or degrees Fahrenheit; both volumes take litres, millilitres or cubic metres; and the work takes joules, kilojoules or calories. Everything is converted before any arithmetic happens, and the second line of Show working restates your figures in the units the calculation really uses, which is moles, kelvin, litres and joules. The pressures are absolute pressures in kilopascals, never gauge pressures.
Only when you are solving for the amount of gas or the temperature, and the reason is that the question genuinely has no answer. With equal volumes the ratio is one, its logarithm is zero, and the work is zero for every amount of gas and every temperature you could name, so nothing in the data can single one out. Solving for the work with equal volumes is perfectly fine and returns zero, because that is a real statement about a gas that did not move.
No, and that contrast is the most useful thing on this page. Let one mole at 300 K go from 10 L to 20 L against a piston and the calculator returns 1728.85 J of work and the same again as heat; let it rush into an empty vessel instead and it pushes against nothing, so the work and the heat are both zero. The two end states are identical, the internal energy change is zero in both, and the entropy change of the gas is 5.763 J/K in both, because entropy is a state function while work and heat are not.
It uses R = 8.314 J/(mol K), the four-figure rounding, and the choice is stated here rather than hidden because it is visible in the answer. The SI 2019 value is 8.314462618 J/(mol K), about 56 parts per million larger, and on the opening state it would return 1728.94 J instead of 1728.85 J. Calculators on this site are not all built on the same one of those two, so if you are comparing this page against a textbook, a spreadsheet or another page, check which constant it used before deciding that anything disagrees.