Free tool

Ideal Gas Law Calculator

Pick the unknown, enter the other three values in whatever units the problem gives, and get pressure, volume, moles or temperature from PV = nRT with every conversion shown.

Built for General Chemistry I

The gas

The unit next to the unknown sets the unit of the answer. R = 0.082057 L·atm/(mol·K), usually rounded to 0.08206.

Result

Enter the three known values.

Gas law problems are mostly unit conversions done in the right order. Encodr keeps them on a spaced-repetition schedule so the setup is automatic by exam day.

Get started free

How PV = nRT works

The ideal gas law ties together pressure (P), volume (V), amount in moles (n) and absolute temperature (T): PV = nRT. With R = 0.08206 L·atm/(mol·K), P must be in atm, V in liters and T in kelvin. This calculator uses R = 0.082057 internally and converts for you: 1 atm = 101.325 kPa = 760 mmHg = 760 torr, 1 L = 1000 mL, and K = °C + 273.15. Temperatures at or below 0 K are rejected, since absolute zero is the floor.

Worked example: 0.500 mol of gas in a 10.0 L container at 25 °C. First T = 25 + 273.15 = 298.15 K. Then P = nRT ÷ V = (0.500)(0.08206)(298.15) ÷ 10.0 = 1.22 atm. Plugging in 25 instead of 298.15 gives 0.103 atm, the most common wrong answer.

At STP (273.15 K and 1 atm, the convention OpenStax uses), 1.00 mol of an ideal gas takes up about 22.4 L. Real gases drift from ideal behavior at high pressure and low temperature. More examples, including molar mass from gas data: the ideal gas law with worked examples. Practice: the free General Chemistry I flashcards.

From the blog

The ideal gas law (PV = nRT) with worked examples

How to use PV = nRT, which value of R to pick, the unit conversions that trip people up, and worked examples for P, V, n, T and molar mass.

Read →

What's in General Chemistry I: the 13 units in order

The 13 units of a first-semester general chemistry course, what each covers, how they map to OpenStax Chemistry 2e chapters 1-10, and the free Encodr deck.

Read →

How to study for a general chemistry exam

A general chemistry exam tests two things, facts you recall and problems you can set up. How to study each, a week-by-week plan, and the traps that cost points.

Read →

First-year biology, chemistry and physics, compared

What General Biology I and II, General Chemistry I and II, and College Physics I and II each cover, how they fit together, and free flashcards for each.

Read →

More free tools

MCAT Score Predictor

Log your practice tests - score, breakdown, conditions, date - and get a weighted prediction of your real MCAT score.

Open tool →

Pre-Med GPA & BCPM Calculator

Calculate your cumulative GPA and BCPM science GPA on the AMCAS 4.0 scale.

Open tool →

Study Schedule Generator

Enter your exam date, hours needed, and difficulty to see how much less time targeted review actually takes.

Open tool →

CARS Timing Calculator

Enter passages completed and minutes elapsed to see your current pace and whether you are on track to finish the CARS section on time.

Open tool →

Retention Curve Simulator

See the Ebbinghaus forgetting curve for cramming vs. spaced review, and where each review session resets your retention.

Open tool →

Study Load Planner

Enter a course, its credit hours, and how memorization-heavy it is to get a recommended daily and weekly study load.

Open tool →

Final Grade Calculator

Enter your current grade, the final's weight, and your target grade to see the exact score you need on the final.

Open tool →

GPA Calculator

Calculate your unweighted and weighted GPA (honors +0.5, AP/IB +1.0) side by side - not just pre-med, works for any transcript.

Open tool →

Exam Pass Score Calculator

Enter total questions and the passing percentage to see exactly how many you can miss and still pass.

Open tool →

Flashcard Deck Time Estimator

Enter deck size and your new-cards-per-day pace to see when first exposure finishes and your steady-state daily review load.

Open tool →

Weighted Grade Calculator

Enter your grading categories and their weights to see your current overall grade, even with categories still outstanding.

Open tool →

Grade to GPA Converter

Convert instantly between letter grades, percentages, and 4.0-scale GPA points.

Open tool →

Engineering Unit Converter

Convert between metric and imperial units for length, mass, pressure/stress, torque, and volume flow rate - built for engineering coursework, not just everyday conversions.

Open tool →

Error Propagation Calculator

Enter two measurements with their uncertainties to see the propagated uncertainty in a sum, difference, product, or quotient.

Open tool →

NPV & IRR Calculator

Enter a discount rate and a series of cash flows to get both the net present value and the internal rate of return.

Open tool →

Break-Even Point Calculator

Enter fixed costs, price per unit, and variable cost per unit to see exactly how many units - and how much revenue - it takes to break even.

Open tool →

Case Study Grade Calculator

Enter your participation, case write-up, project, and exam weights to see your current grade in a case-method business course.

Open tool →

Portfolio & Critique Rubric Scorer

Score your own work against a weighted studio rubric - concept, execution, craft, presentation, and reflection - before a critique or portfolio review.

Open tool →

Citation Format Converter (APA/MLA/Chicago)

Enter one source once and get correctly formatted citations in APA, MLA, and Chicago side by side, for books, websites, and journal articles.

Open tool →

Reading Load Calculator

Enter total pages, days available, and how dense the reading is to see how many pages a night it actually takes to keep up.

Open tool →

Pomodoro Study Timer

A free, no-signup Pomodoro timer with customizable work and break lengths and a running count of completed sessions.

Open tool →

Credit Hour Study Time Estimator

Enter your total credit hours this term to see the weekly study time the standard "2-3 hours per credit hour" rule recommends.

Open tool →

Semester GPA Goal Planner

Enter your current GPA, credits earned, target GPA, and credits this semester to see the exact GPA you need this term.

Open tool →

Coinsurance Penalty Calculator

See whether a property policy met its coinsurance requirement and exactly what it pays on a loss - built for P&C license exam prep.

Open tool →

Health Insurance Cost Sharing Calculator

Split a medical bill between you and the plan through the deductible, coinsurance, copay, and out-of-pocket maximum, step by step.

Open tool →

Days Supply Calculator

Calculate days supply for tablets, oral liquids, and insulin, rounded down to whole days - built for pharmacy technician exam prep.

Open tool →

Alligation Calculator

Mix a higher and a lower strength to make a desired strength and quantity - get the parts and the amount of each.

Open tool →

IV Flow Rate Calculator

Calculate IV flow rate in mL/hr, drip rate in gtt/min for any drop factor, and infusion time, with the working shown.

Open tool →

Real Estate Commission Calculator

Split a real estate commission between the listing and buyer brokerages, then between each broker and agent, with the math shown.

Open tool →

Property Tax Proration Calculator

Prorate annual property taxes at closing on a 360 or 365-day year, with the day count and the seller's share credited to the buyer.

Open tool →

Order of Draw Quiz

Practice the standard phlebotomy order of draw: tap random sets of collection tubes into the correct sequence and see where you slipped.

Open tool →

Blood Draw Tube Color Guide

Look up a blood collection tube by color, additive or test, with its typical use and order-of-draw step.

Open tool →

Subnet and CIDR Calculator

Get the mask, network and broadcast address, host range and usable host count for any IPv4 address and prefix - built for Security+ exam prep.

Open tool →

Bond Yield Calculator

Current yield, an approximate yield to maturity and tax-equivalent yield with the formulas shown - built for Series 7 exam prep.

Open tool →

Options Profit Calculator

Profit or loss, breakeven, maximum gain and maximum loss for a long or short call or put at expiration - built for FINRA SIE exam prep.

Open tool →

Mutual Fund Sales Charge Calculator

Public offering price, shares bought, front-end load, your own breakpoint schedule and a back-end CDSC by year - built for FINRA SIE exam prep.

Open tool →

Margin Account Calculator

Debit or credit balance, equity, maintenance call and the trigger price for a long or short margin position - built for FINRA SIE exam prep.

Open tool →

Glasgow Coma Scale Calculator

Add eye, verbal and motor responses into a Glasgow Coma Scale total. A study aid for EMS students, not for patient care.

Open tool →

C1V1 = C2V2 Dilution Calculator

Solve C1V1 = C2V2 for any one value in M or mM and L or mL, and see how much solvent to add to reach the final volume.

Open tool →

Half-Life Calculator

First-order decay: find the amount remaining, the time elapsed or the half-life, plus the rate constant k, with the working shown.

Open tool →

Hardy-Weinberg Calculator

Get p, q, p^2, 2pq and q^2 from a recessive phenotype frequency, an allele frequency, or genotype counts, with a chi-square test.

Open tool →

Henderson-Hasselbalch Calculator

Find a buffer's pH from pKa (or Ka) and the base-to-acid ratio, or the ratio you need for a target pH, with a buffer-range check.

Open tool →

Kinematics Calculator (SUVAT Solver)

Enter any three of displacement, initial velocity, final velocity, acceleration and time to solve the other two, with the equation shown.

Open tool →

Molar Mass Calculator

Molar mass of any formula, including parentheses and hydrates, with each element's count, mass contribution and mass percent.

Open tool →

pH Calculator

Convert between [H3O+], [OH-], pH and pOH, or find the pH of a strong acid, strong base or weak acid with the exact quadratic shown.

Open tool →

Projectile Motion Calculator

Enter launch speed, angle and height to get time of flight, range, maximum height and impact velocity, with the working shown.

Open tool →

Punnett Square Calculator

Enter two parent genotypes for one or two genes to get the Punnett square, gametes, and genotype and phenotype ratios with percentages.

Open tool →

Series and Parallel Resistor Calculator

Equivalent resistance for 2 to 8 resistors in series or parallel, plus current, voltage drop and power for each one.

Open tool →

Thin Lens Equation Calculator

Solve 1/f = 1/do + 1/di for the focal length, object or image distance, with magnification and whether the image is real or virtual.

Open tool →