How to Find the Density of a Gas

An error occurred trying to load this video.

Try refreshing the page, or contact customer support.

Coming up next: Dalton's Law of Partial Pressures: Calculating Partial & Total Pressures

You're on a roll. Keep up the good work!

Take Quiz Watch Next Lesson
Your next lesson will play in 10 seconds
  • 0:01 Definition of Density
  • 1:37 Calculating Density
  • 2:27 Density & the Ideal Gas Law
  • 6:37 Lesson Summary
Save Save Save

Want to watch this again later?

Log in or sign up to add this lesson to a Custom Course.

Log in or Sign up

Speed Speed

Recommended Lessons and Courses for You

Lesson Transcript
Instructor: Amy Lange

Amy has taught university-level earth science courses and has a PhD in Geology.

The density of gas is more complicated than solids because gases are highly affected by temperature and pressure. This lesson will lead you through two equations to calculate the density of a gas.

Definition of Density

The density of solid objects are easy to understand because you can physically feel it. If you have a rock and a piece of foam that are exactly the same size, the rock will feel heavier. This heaviness is due to the rock having a higher density than foam.

Density is a physical property of matter and is defined as the mass of the object divided by volume. Remember that mass is the measure of the amount of matter in an object and is measured in grams. Volume is the 3-dimensional space that an object occupies and is measured in cubic meters. If we have two objects of the same volume, the one with greater mass will have a higher density than the one with the lesser mass.

Density equation

In solids, density remains mostly constant because the subatomic bonds keep the molecules tightly packed. However, in gases, the bonds are much weaker, which makes them responsive to temperature and pressure. Gases will assume the shape of whatever container they are in. Assuming we have a fixed mass of gas, meaning that we haven't added or taken away any of the gas, when we change the volume of the container, we are changing the density of the gas. A smaller container means a smaller volume. According to our equation, density is inversely related to volume. So, a smaller volume will produce a denser gas. This is because you are packing the same amount of molecules into a smaller space.

Calculating Density

So, how do we actually measure the density of a gas? An easy way to visualize gas density is to observe its behavior compared to air. Think of helium-filled balloons. These balloons rise because they are less dense than the surrounding air. This density is so much lower that it causes the rubber balloon and string to float in the air. While observing the floating balloon tells us that helium is less dense than air, it doesn't give us a quantitative measure of what the density of helium actually is.

If we know the mass of the gas and the volume, we can easily calculate density. Let's assume we have a gas with a mass of 500 g in a volume of 2m^3. Dividing 500 by 2 will give you a density of 250 g/m^3.

Density & the Ideal Gas Law

Gases are highly responsive to changes in both temperature and pressure. In fact, car tire manufacturers recommend that you check your tires frequently if you live in climates that experience large temperature variations. Gases expand in high temperatures and condense in low temperatures. Thus, when temperatures drop, you could experience dangerously low tire pressures due to the low volume of air in your car tires. This is the same phenomenon that causes hot air balloons to fly. The gas burner heats the air inside the balloon making it less dense than the surrounding air. The less dense air rises compared to the surrounding air.

We can calculate how the density of air changes with changing temperature using the ideal gas law. The ideal gas law is defined as PV = nRT. P is pressure, V is volume, n is the number of gas moles, R is the ideal gas constant and T is temperature. The ideal gas constant is 0.0821 L * atm/mol * K. Generally, constants are values that have been previously verified by scientists, and we can insert directly into equations.

To unlock this lesson you must be a Member.
Create your account

Register to view this lesson

Are you a student or a teacher?

Unlock Your Education

See for yourself why 30 million people use

Become a member and start learning now.
Become a Member  Back
What teachers are saying about
Try it risk-free for 30 days

Earning College Credit

Did you know… We have over 200 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Transferring credit to the school of your choice

Not sure what college you want to attend yet? has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

Create an account to start this course today
Try it risk-free for 30 days!
Create an account