When I first learned about continuous and discrete data, the difference seemed simple: one involved decimals and the other involved whole numbers. But that shortcut can cause mistakes. A variable can be recorded as a whole number and still be continuous, while a discrete variable can sometimes contain decimal values.
The real question is whether the possible values are countable and separate or measurable across a continuous range. In this guide, I’ll explain continuous or discrete variables in simple terms, show common examples, cover tricky cases such as age, money, time, shoe size, and test scores, and give you an easy method for identifying them.
Continuous Or Discrete: What’s The Difference?

The main difference between discrete and continuous variables is how their possible values occur. A discrete variable has separate, countable possible values, such as the number of students in a class. A continuous variable can take any value within a range, such as height, weight, temperature, or exact time.
Easy rule: If you are counting, the variable is usually discrete. If you are measuring, it is usually continuous.
However, the definition of the variable matters. A measurement rounded to a specific precision can become discrete in the way it is recorded.
Continuous Vs. Discrete At A Glance
| Feature | Discrete | Continuous |
| Basic idea | Separate, countable values | Values within a range |
| Usually comes from | Counting | Measuring |
| Possible values | Individual values | Any value in an interval |
| Can have decimals? | Sometimes | Yes |
| Can have whole numbers? | Yes | Yes |
| Example | Number of children | Height |
| Another example | Number of cars | Temperature |
| Common graph | Bar chart or dot plot | Histogram or density curve |
| Probability model | Probability mass function | Probability density function |
| Typical question | How many? | How much/how long/how far? |
The most important distinction is not whether the numbers contain decimal points. It is whether the possible values are separate and countable or form a continuous range.
What Is A Discrete Variable?
Discrete Variable Definition
A discrete variable can take a finite or countably infinite number of distinct values. In introductory statistics, discrete variables commonly result from counting objects, events, people, or occurrences.
For example, the number of books on a shelf could be:
- 0
- 1
- 2
- 3
- 4
- 5
You could have 20 books or 21 books, but you cannot have 20.37 books when counting complete books.
Examples Of Discrete Variables
Common discrete variables include:
- Number of students in a classroom
- Number of pets in a household
- Number of cars in a parking lot
- Number of goals scored in a soccer match
- Number of emails received
- Number of defective products
- Number of customers in a store
- Number of children in a family
- Number of questions answered correctly
- Number of accidents in a month
- Number of calls received
- Number of books owned
- Number of hospital visits
- Number of employees in a company
- Number of heads obtained from coin flips
These variables are discrete because their possible values are separate and can be counted.
Why Discrete Does Not Always Mean Whole Numbers
One of the most common misconceptions is that every discrete variable must contain whole numbers.
That is not necessarily true.
Suppose shoe sizes in a particular system are:
- 7
- 7.5
- 8
- 8.5
- 9
Those values include decimals, but shoe size is still discrete because only specific standardized sizes are available. You cannot normally choose every possible number between 8 and 8.5.
Therefore:
Decimal ≠ automatically continuous.
The important question is whether the possible values can be listed as separate choices.
What Is A Continuous Variable?
Continuous Variable Definition
A continuous variable can take any value within a specified interval or range. Continuous variables commonly come from measurements such as height, weight, temperature, distance, or time.
For example, a person’s height might be:
- 170 cm
- 170.1 cm
- 170.12 cm
- 170.123 cm
- 170.1234 cm
The possible measurements between two values are not limited to a fixed list.
Examples Of Continuous Variables
Examples of continuous data include:
- Height
- Weight
- Body temperature
- Distance
- Exact time
- Length
- Width
- Speed
- Air pressure
- Blood pressure measurement
- Rainfall
- Amount of water
- Mass
- Age measured precisely
- Room temperature
- Travel duration
These are generally measurements rather than counts.
Why Whole Numbers Can Still Be Continuous
Another common mistake is thinking that a whole number automatically makes data discrete.
Imagine a person’s height is recorded as 170 cm.
The recorded value is a whole number, but height itself is continuous because the person’s actual height could be 169.8 cm, 170.1 cm, 170.01 cm, or another value within the measurement range.
So:
Whole number ≠ automatically discrete.
The underlying variable and how it is defined are what matter.
Continuous Or Discrete: How To Tell The Difference
Step 1: Ask What Is Being Recorded
First, identify exactly what the variable represents.
For example:
Number of customers: You are counting customers.
Waiting time: You are measuring how long customers wait.
That immediately gives you a strong clue.
Step 2: Ask If You Are Counting Or Measuring
Use this simple shortcut:
Counting → usually discrete
Measuring → usually continuous
Examples:
- Number of students → counting → discrete
- Number of pets → counting → discrete
- Weight of a student → measuring → continuous
- Height of a student → measuring → continuous
- Time spent studying → measuring → continuous
This is a useful shortcut, but it is not the only rule.
Step 3: Check Whether Values Between Two Points Are Possible
Suppose a variable can be:
1, 2, 3, 4, 5
There are separate values, so it is discrete.
Now consider temperature:
20°C, 20.1°C, 20.01°C, 20.001°C
Values can occur throughout the range, so temperature is continuous.
Step 4: Check How The Variable Is Defined
This step solves many tricky questions.
Consider time.
If the variable means exact waiting time, it is continuous.
If the variable means waiting time rounded to the nearest minute, the recorded values are limited to specific increments and may be treated as discrete.
The same underlying phenomenon can therefore be represented differently depending on how the variable is defined or recorded.
Continuous Or Discrete: Common Examples
| Variable | Usually Classified As | Why |
| Number of siblings | Discrete | Counted |
| Number of pets | Discrete | Counted |
| Number of students | Discrete | Counted |
| Number of cars | Discrete | Counted |
| Number of goals | Discrete | Counted |
| Number of defects | Discrete | Counted |
| Height | Continuous | Measured |
| Weight | Continuous | Measured |
| Temperature | Continuous | Measured |
| Distance | Continuous | Measured |
| Exact time | Continuous | Measured |
| Speed | Continuous | Measured |
| Length | Continuous | Measured |
| Mass | Continuous | Measured |
| Shoe size | Discrete | Limited standardized values |
| Number of correct answers | Discrete | Counted |
| Exact age | Continuous | Measured over time |
| Age in completed years | Discrete as recorded | Limited to whole-year values |
| Heart rate in beats per minute | Discrete | Number of beats counted |
| Interbeat interval | Continuous | Time measurement |
Tricky Continuous Or Discrete Examples

Some variables cause confusion because the answer depends on exactly what is being measured or recorded.
Is Age Continuous Or Discrete?
Age is generally continuous when referring to exact age.
A person can be 20 years old, 20.5 years old, 20.25 years old, or 20.251 years old.
However, if a survey records only completed years of age, the recorded variable has discrete values such as 18, 19, 20, and 21.
Therefore:
Exact age → continuous
Age recorded in completed years → discrete as recorded
Is Money Continuous Or Discrete?
Money is a tricky example.
If you are counting actual currency amounts in a system that only permits cents, then the possible values are limited to increments such as:
- $10.00
- $10.01
- $10.02
- $10.03
In that setting, the recorded monetary amount is discrete.
However, in many statistical and economic models, money or income may be modeled as a continuous variable for convenience.
So the safest answer is:
Actual cents-based amounts → discrete
Money treated as a continuous statistical measurement → often modeled as continuous
Always follow the definition used in your problem.
Is Time Continuous Or Discrete?
Exact time is continuous.
For example, a race could take:
- 10.2 seconds
- 10.21 seconds
- 10.213 seconds
- 10.2135 seconds
There are theoretically unlimited values within the interval.
But if a problem records time only to the nearest second, the recorded values may be treated as discrete.
Is Temperature Continuous Or Discrete?
Temperature is generally continuous.
A thermometer can measure values such as:
- 20°C
- 20.1°C
- 20.15°C
- 20.157°C
The fact that a thermometer displays only a certain number of decimal places does not change the underlying nature of temperature.
Is Height Continuous Or Discrete?
Height is continuous because it is measured.
A person might be recorded as 170 cm, but their actual height could be 170.2 cm or 169.95 cm.
The displayed or rounded value does not automatically make the underlying variable discrete.
Is Weight Continuous Or Discrete?
Weight is generally continuous.
A package might weigh 2 kg when rounded, but its actual mass could be 2.01 kg, 2.005 kg, or another value within the relevant range.
Is Shoe Size Continuous Or Discrete?
Shoe size is generally discrete because standardized systems offer specific size increments.
For example:
- 7
- 7.5
- 8
- 8.5
- 9
Although some shoe sizes contain decimals, the variable is still based on separate permitted values.
Is Heart Rate Continuous Or Discrete?
Heart rate in beats per minute is generally discrete because it represents a count of beats.
For example:
- 60 bpm
- 61 bpm
- 62 bpm
- 63 bpm
You would not normally describe a person as having exactly 61.37 complete heartbeats per minute in the same counting sense.
However, the time between individual heartbeats is a continuous measurement.
Is A Test Score Continuous Or Discrete?
A raw test score based on the number of questions answered correctly is discrete.
For a 50-question test, possible raw scores include:
- 0
- 1
- 2
- 3
- …
- 49
- 50
You cannot answer 37.4 questions correctly.
A percentage score may also have discrete possible values if it is determined from a fixed number of questions.
Is GPA Continuous Or Discrete?
GPA depends on how it is defined.
If a school allows only a fixed set of GPA values or grade-point increments, it is discrete as recorded.
If a statistical model treats GPA as a measurement that can vary continuously, it may be modeled as continuous.
The correct classification depends on the possible values permitted by the system and the definition used in the problem.
Continuous Or Discrete Data Vs. Variables
What Is Discrete Data?
Discrete data consists of observations that take separate, countable values.
Examples include:
- Number of children
- Number of sales
- Number of defective items
- Number of calls
- Number of employees
Discrete data is often quantitative because the observations are numerical.
What Is Continuous Data?
Continuous data comes from measurements that can theoretically take any value within a range.
Examples include:
- Height
- Weight
- Temperature
- Distance
- Time
- Speed
The distinction is useful in statistics because different types of variables can require different methods of analysis and probability models.
What Is A Variable?
A variable is a characteristic or quantity that can have different values for different observations.
For example, in a study of students:
- Age can be a variable.
- Height can be a variable.
- Number of siblings can be a variable.
- Test score can be a variable.
A variable can then be classified according to the nature of its possible values.
Continuous Or Discrete Random Variables
What Is A Discrete Random Variable?
A discrete random variable assigns numerical values to outcomes where the possible values are finite or countably infinite. Common examples include the number of heads in coin flips or the number of customers entering a store.
For example, if X represents the number of heads in three coin flips, X can be:
- 0
- 1
- 2
- 3
Those values are countable, so X is discrete.
What Is A Continuous Random Variable?
A continuous random variable can take any value within a specified interval.
For example, if X represents the exact weight of a randomly selected package, X could theoretically take many values throughout a range.
OpenStax describes continuous random variables as variables that can take any value within an interval, while discrete random variables have finite or countably many possible values.
Probability Difference Between Discrete And Continuous Variables
The probability treatment is another important difference.
For a discrete random variable, individual values can have positive probabilities.
For example:
P(X = 3)
can be a meaningful probability.
For a continuous random variable, the probability of obtaining one exact value is typically zero:
P(X = 3) = 0
Instead, probabilities are calculated over intervals, such as:
P(2 < X < 4)
For continuous probability distributions, the probability over an interval corresponds to the area under the probability density curve.
Continuous Or Discrete Probability Distributions
Discrete Probability Distribution
A discrete probability distribution assigns probabilities to the individual possible values of a discrete random variable.
Examples include:
- Binomial distribution
- Poisson distribution
- Probability distribution for dice
- Number of defective products
A probability mass function, often called a PMF, can be used to describe probabilities for discrete random variables.
Continuous Probability Distribution
A continuous probability distribution describes probabilities across a continuous range.
Examples include:
- Normal distribution
- Exponential distribution
- Other continuous probability models
A probability density function, or PDF, is used to describe the distribution. Probabilities are found from areas under the density curve rather than from the probability of individual exact values.
Continuous Or Discrete Graphs
Graphs For Discrete Data
Discrete data is commonly represented using:
- Bar charts
- Dot plots
- Frequency tables
- Discrete probability graphs
The separate values are shown individually rather than as an uninterrupted measurement scale.
Graphs For Continuous Data
Continuous data is commonly displayed using:
- Histograms
- Density curves
- Box plots
- Line graphs for measurements over time
For probability distributions, continuous variables are often represented with density curves, where areas under the curve represent probabilities.
Worked Examples Of Continuous And Discrete Variables
Example 1: Number Of Customers
A supermarket wants to record how many customers enter between 5 p.m. and 6 p.m.
Possible values:
0, 1, 2, 3, 4, …
You are counting customers.
Answer: Discrete
Example 2: Waiting Time
The supermarket records how long each customer waits in line.
A customer could wait:
2 minutes, 2.1 minutes, 2.15 minutes, or 2.157 minutes.
You are measuring time.
Answer: Continuous
Example 3: Number Of Defective Products
A factory checks 1,000 products and records the number that are defective.
Possible values are individual counts from 0 through 1,000.
Answer: Discrete
Example 4: Product Weight
The same factory records the weight of each product.
A product might weigh 500 g, 500.2 g, 500.25 g, or another value within the measurement range.
Answer: Continuous
Example 5: Number Of Goals
A football team scores 3 goals in a match.
Goals are counted, so the number of goals is a discrete variable.
Answer: Discrete
Example 6: Match Duration
The exact amount of time a match lasts is measured.
Because time can be represented at increasingly precise levels, the underlying duration is continuous.
Answer: Continuous
Common Mistakes When Identifying Continuous Or Discrete Data
Mistake 1: Thinking Every Decimal Is Continuous
This is false.
Shoe sizes can contain decimals while remaining discrete because only certain values are permitted.
Mistake 2: Thinking Every Whole Number Is Discrete
This is also false.
A measured height can be rounded to a whole number even though the underlying variable is continuous.
Mistake 3: Using Only The Count-Or-Measure Rule
“Count = discrete” and “measure = continuous” is an excellent shortcut, but the exact definition still matters.
For example, age measured in completed years is recorded discretely, while exact age is continuous.
Mistake 4: Ignoring Rounding
A continuous variable can be rounded for practical reasons.
For example, exact temperature may be continuous, but a device may display only whole degrees.
The measurement’s precision does not automatically determine the underlying classification.
Mistake 5: Confusing A Variable With Its Recorded Format
The variable might be continuous even if a spreadsheet contains only whole numbers.
Always ask what the values represent, not simply what the cells look like.
Continuous Or Discrete: An Easy Exam Shortcut
When you need a quick answer on a test, use these questions:
Question 1: Am I counting?
If yes, the answer is probably discrete.
Question 2: Am I measuring?
If yes, the answer is probably continuous.
Question 3: Can values between two listed values exist?
If no, it is likely discrete.
If yes, it is likely continuous.
Question 4: Are decimal values automatically allowed?
If only specific decimal values are allowed, it can still be discrete.
Question 5: Has the variable been rounded or grouped?
If yes, look at the original definition before deciding.
Quick Memory Trick
Remember:
Discrete = Distinct
Continuous = Connected
If the possible values are separate and countable, think discrete.
If the values form a continuous range, think continuous.
Continuous Or Discrete Quiz

Try classifying these variables before checking the answers.
- Number of students in a classroom
- Height of a student
- Number of pets in a house
- Temperature outside
- Number of books on a shelf
- Exact time required to finish a race
- Shoe size
- Number of correct answers
- Weight of a package
- Number of phone calls received
Quiz Answers
- Discrete — students are counted.
- Continuous — height is measured.
- Discrete — pets are counted.
- Continuous — temperature is measured.
- Discrete — books are counted.
- Continuous — exact time is measured.
- Discrete — standardized shoe sizes are separate values.
- Discrete — correct answers are counted.
- Continuous — weight is measured.
- Discrete — calls are counted.
Continuous Or Discrete Cheat Sheet
| If The Variable… | Classification |
| Counts people | Discrete |
| Counts objects | Discrete |
| Counts events | Discrete |
| Counts correct answers | Discrete |
| Measures height | Continuous |
| Measures weight | Continuous |
| Measures temperature | Continuous |
| Measures distance | Continuous |
| Measures exact time | Continuous |
| Uses specific standardized sizes | Usually discrete |
| Contains decimals | Not enough information |
| Uses whole numbers | Not enough information |
| Is rounded | Check the underlying variable |
The key lesson is simple: do not classify data by looking only at the numbers. Classify it by understanding what the variable represents and what values are possible.
Frequently Asked Questions About Continuous Or Discrete
What Is The Difference Between Continuous And Discrete?
Discrete variables have separate, countable possible values, while continuous variables can take any value within a range. Number of students is discrete, while height and weight are continuous.
How Do You Know If Data Is Continuous Or Discrete?
Ask whether you are counting or measuring. Counts are usually discrete, while measurements are usually continuous. Then check whether values between two possible observations can exist.
Can Discrete Data Have Decimals?
Yes. A discrete variable can contain decimal values if only specific values are possible. Shoe sizes such as 7.5 and 8.5 are an example.
Can Continuous Data Be A Whole Number?
Yes. Continuous measurements can be recorded as whole numbers after rounding. A height of 170 cm may represent an underlying measurement that is more precise.
Is Age Continuous Or Discrete?
Exact age is generally continuous because time passes continuously. Age recorded only as completed years is discrete as recorded.
Is Time Continuous Or Discrete?
Exact time is generally continuous. However, time rounded or recorded at fixed intervals can be represented as discrete values.
Is Money Continuous Or Discrete?
It depends on the definition. Actual amounts restricted to cents are discrete, while money or income may be modeled as continuous in some statistical applications.
Is Temperature Continuous Or Discrete?
Temperature is generally continuous because it is a measurement that can take values throughout a range.
Is Height Continuous Or Discrete?
Height is continuous because it is measured and can theoretically take many values between two points.
Is Weight Continuous Or Discrete?
Weight is generally continuous because it is a measurement rather than a count.
Is Shoe Size Continuous Or Discrete?
Shoe size is generally discrete because standardized systems provide specific size increments, even when half sizes are included.
Is Heart Rate Continuous Or Discrete?
Heart rate expressed as beats per minute is generally discrete because it counts beats. The time interval between heartbeats is a continuous measurement.
Is A Test Score Continuous Or Discrete?
A raw score based on the number of questions answered correctly is discrete. If a scoring system permits only specific increments, the recorded score remains discrete.
What Is A Continuous Random Variable?
A continuous random variable can take any value within a specified interval. Examples include exact weight, height, temperature, and time.
What Is A Discrete Random Variable?
A discrete random variable has a finite or countably infinite set of possible values. Examples include the number of customers, number of heads in coin flips, or number of defective products.
What Is The Easiest Way To Remember Continuous And Discrete?
Remember discrete = distinct and countable and continuous = measurable and connected across a range. Counting usually points to discrete, while measuring usually points to continuous.
Conclusion
Understanding continuous or discrete becomes much easier when you stop focusing only on whether a number contains a decimal. Discrete variables have separate, countable possible values, while continuous variables can take values throughout a range.
Counting people, cars, goals, or correct answers usually produces discrete data. Measuring height, weight, temperature, distance, or exact time usually produces continuous data.
The tricky cases such as age, money, shoe size, heart rate, GPA, and test scores show why the exact definition of a variable matters. When in doubt, ask what is being measured, what is being counted, and whether values between two possible observations are allowed.

Matthew Cooper is a passionate writer who loves exploring human emotions, modern culture, and everyday life experiences through meaningful storytelling. With years of creative writing experience, he has built a reputation for crafting engaging and thought-provoking content that connects naturally with readers.
He is the author of Beneath The Crimson Hour and When The Moon Turned Silver, two original works known for their deep themes and immersive writing style.
Matthew enjoys turning simple ideas into powerful narratives that inspire curiosity and reflection. His work focuses on authenticity, creativity, and delivering valuable insights in a clear and engaging way.
