How to use the ideal gas law

academics chemistry ideal gas law

While you might not think about it very often, gases are everywhere around us, from the air you breathe to the natural gas you might use to heat your home. To use gases safely and effectively, chemists use the ideal gas law to understand how much gas is in containers and pipes.

The ideal gas law is an equation that relates the pressure (P), volume (V), temperature (T), and amount of gas present (n) in a container. In its complete form, it looks like:

Screen Shot 2023-04-10 at 4.20.32 PMThe R in the ideal gas law is an important constant called the ideal gas constant, which can be given in a variety of units depending on the problem. Usually, you’ll see R given as:

Screen Shot 2023-04-10 at 4.20.36 PM

The trickiest thing about using the ideal gas law is units—you always want to make sure that the units of your pressure, volume, and temperature match the units of the gas constant you are given, otherwise your calculation will be incorrect.

At first, the ideal gas law might seem overwhelming because it contains many variables, but it can usually be simplified by eliminating variables that aren’t changing in the problem you’re trying to solve. This often happens when two variables are changing but the others are not. Let’s look at two examples of the ideal gas law in action.

Example 1: Amount of oxygen in a cylinder

A gas cylinder containing O2 is used to help a hospital patient breathe. The cylinder contains 5.0 L of O2 at 7.0 atm. The cylinder is kept in a room at 28 °C. How many moles of gas are in the cylinder?

This problem is an example of how units are key to calculations with the ideal gas law. The temperature unit given in the problem statement (28 °C) does not match the unit in the value given for R (K). So, our first step should be to convert 28 °C to temperature in Kelvin:

Screen Shot 2023-04-10 at 4.22.44 PM

Now that we have the temperature in the correct units, we can use the ideal gas law. We want to know how many moles of gas (n) are present in the cylinder, so first we rearrange the equation for the ideal gas law to solve for n:

Screen Shot 2023-04-10 at 4.22.47 PM

With this rearranged equation and our converted temperature, we can plug in the values from the problem statement:

Screen Shot 2023-04-10 at 4.22.51 PM

Example 2: Compressing a gas with a piston

A container containing 5.00 L of N2 gas at an initial pressure of 0.500 atm is compressed using a piston to a final pressure of 2.00 atm. The temperature of the container is held constant. What is the final volume of the gas?

This problem is a good opportunity to eliminate variables that aren’t changing to simplify our calculation. Notice that the problem statement tells us that the temperature is held constant throughout the compression process. This means that we can ignore the T variable in the ideal gas law. The problem statement also implies that the amount of gas (n) does not change, since the gas is contained in a cylinder and does not escape, so we can eliminate n. Finally, since we have eliminated these variables, we can also eliminate R. Overall, this gives us the following equation:

Screen Shot 2023-04-10 at 4.25.01 PM

First, we want to rearrange this equation to solve for the final volume (V2):

Screen Shot 2023-04-10 at 4.25.03 PM

Then plug in the values from the problem statement:

Screen Shot 2023-04-10 at 4.25.07 PM

If you’re thinking—"whoa, where did the P1V1 and P2V2 come from?”—don’t worry, we’re still using the ideal gas law. In this problem, we are given an initial and final pressure and we are asked to find the final volume. We know that the number of moles and the temperature don’t change, so we know that the nRT on the right side of the ideal gas law remains constant. Knowing this, we could perform the following calculation using the initial pressure and volume:

Screen Shot 2023-04-10 at 4.25.14 PM

At this point, we know that because nRT stays constant, we could also write the following expression for the final pressure and volume:

Screen Shot 2023-04-10 at 4.25.18 PM

We can then set the two sides of the expressions equal to obtain:

Screen Shot 2023-04-10 at 4.25.24 PM

This expression is equivalent to the calculation we used above to obtain the result V2 = 1.25 L.

Comments

topicTopics
academics study skills medical school admissions MCAT SAT college admissions expository writing strategy English MD/PhD admissions writing LSAT physics GMAT GRE chemistry graduate admissions academic advice biology math law school admissions ACT interview prep language learning test anxiety personal statements premed career advice MBA admissions AP exams homework help test prep creative writing MD computer science mathematics study schedules Common Application summer activities history secondary applications philosophy research organic chemistry economics supplements 1L admissions coaching dental admissions grammar statistics & probability PSAT psychology law legal studies ESL reading comprehension CARS PhD admissions SSAT covid-19 logic games calculus engineering USMLE medical school mentorship Latin Spanish parents AMCAS admissions advice biochemistry case coaching verbal reasoning DAT English literature STEM excel genetics political science skills French Linguistics MBA coursework Tutoring Approaches academic integrity astrophysics chinese classics dental school gap year letters of recommendation mechanical engineering technical interviews units Anki DO Social Advocacy algebra art history artificial intelligence business careers cell biology data science diversity statement first generation student freewriting geometry graphing kinematics linear algebra mental health pre-dental presentations quantitative reasoning software engineering study abroad tech industry time management work and activities 2L AAMC DMD IB exams ISEE MD/PhD programs MMI Sentence Correction adjusting to college algorithms amino acids analysis essay argumentative writing athletics business skills cold emails executive function fellowships finance functions genomics information sessions international students internships logic networking office hours poetry proofs resume revising scholarships science social sciences trigonometry writer's block 3L Academic Interest ChatGPT EMT FlexMed Fourier Series Greek Health Professional Shortage Area Italian JD/MBA admissions Japanese Lagrange multipliers London MD vs PhD Montessori National Health Service Corps Pythagorean Theorem Python Shakespeare Step 2 TMDSAS Taylor Series Truss Analysis Zoom acids and bases active learning architecture art art and design schools art portfolios bacteriology bibliographies biomedicine brain teaser burnout campus visits cantonese capacitors capital markets central limit theorem centrifugal force chem/phys chemical engineering chess chromatography class participation climate change clinical experience community service constitutional law consulting cover letters curriculum dementia demonstrated interest dimensional analysis distance learning econometrics electric engineering electricity and magnetism embryology entropy escape velocity evolution extracurriculars fundraising harmonics health policy history of medicine history of science hybrid vehicles hydrophobic effect ideal gas law immunology induction infinite institutional actions integrated reasoning intermolecular forces intern investing investment banking lab reports letter of continued interest linear maps