On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Numbers & Quantities · Grade 9-12

Density of Numbers

Density means that between any two different real numbers there are infinitely many others — no real number has a "next" one.

For any a<b, there exists c such that a<c<b (e.g., c=a+b2)

Quick Answer

Density means that between any two different real numbers there are infinitely many others — no real number has a "next" one. Use it when a problem says two numbers are neighbours, asks for a number strictly between two values, or asks whether a set of numbers has gaps. The midpoint a+b2 always lands between a and b, and repeating it shows the supply never runs out. The rational numbers are dense as well; the integers are not.

Why This Matters

Density is why a graph of a real-valued function can be drawn without lifting the pencil, why 'the number after 0.7' makes no sense, and why calculus talks about getting as close as you like instead of about neighbouring values. It also tells you there is no smallest positive number, which is the starting point for limits and for every argument about values that shrink toward zero.

Intuitive Explanation

Take 0.7 and 0.71. They look like neighbours, but 0.705 sits between them. Between 0.7 and 0.705 sits 0.7025; between 0.7 and 0.7025 sits 0.70125. Each time you average the two ends, you get a new number strictly inside, and the process never runs out of room. That is density: no two different real numbers are adjacent, and no gap between them is too small to hold more.

The midpoint gives a general proof. If a<b, then c=a+b2 satisfies a<c<b, because c−a=b−a2>0 and b−c=b−a2>0. Repeat with a and c, then with a and the new midpoint, and you produce infinitely many numbers between a and b. One consequence is that there is no smallest positive real number: half of any positive number is smaller and still positive.

Integers behave differently. Between 4 and 5 there is no integer at all, and every integer has a definite next one. So density belongs to a number set, not to numbers in general: the rationals and the reals are dense, while the integers and the natural numbers are not. Density is also different from infinity in the outward sense. The counting numbers go on forever but are not dense; the interval (0,1) has a finite length yet holds infinitely many numbers.

Think of it like this. Picture a ruler you can keep magnifying. Zoom in between any two marks and finer marks appear, forever, with no smallest spacing. The integers are a ruler with only centimetre marks: zoom in between 4 and 5 and nothing new shows up. A physical ruler eventually runs out of room for marks; the number line never does.

Core idea. Between any two distinct real numbers you can always squeeze infinitely many more.


When to Use

Use density when a problem asks for a number strictly between two values, claims two numbers are next to each other, asks for the smallest positive number, or asks whether a set has gaps. The midpoint is your tool. If the set is the integers, or anything counted in whole steps, there is a next element and density does not apply. If the question is about numbers growing without bound, that is infinity outward, not density.

Tip. Ask: Is the question about whether infinitely many numbers fit between two given values, with no smallest gap?

How to Recognize It

Before you call on density, check which set of numbers the problem allows: integers, rational numbers or all real numbers.

  1. Are the allowed values integers, or things counted in whole steps like people or tickets?

    Then density does not hold: 4 and 5 have nothing between them, and every integer has a next one. Reason with consecutive integers instead.

  2. Does the problem ask for a number strictly between two given values, such as between 0.3 and 0.31?

    Density promises one exists: the midpoint 0.305 works, and so do 0.301,0.302,…. If the endpoints themselves may be included and you are naming the whole range, you are describing an interval.

  3. Is the question about numbers growing without bound rather than packing in between two values?

    Then it is infinity outward, not density. The integers go on forever yet are not dense, so being infinite and being dense are separate properties.

  4. Does the problem ask for the smallest positive number, or the number just after a given one?

    Among rationals or reals no such number exists: whatever c>0 you name, c2 is smaller and still positive. Among the positive integers there is a smallest, 1, because integers have gaps.

Density of Numbers compared with Consecutive integers, Infinity intuition, and Interval

Density, consecutive integers, infinity and intervals all involve endless supplies of numbers or stretches of the line. The deciding question is whether there is always another number between any two, or whether the set has a next element.

Density of Numbers

Meaning
Use this when you must reason about whether numbers between two values exist or whether reals have a 'next' number.
Key test
Is the question about whether infinitely many numbers fit between two given values, with no smallest gap?
Formula
For any a<b, there exists c such that a<c<b (e.g., c=a+b2)
Example
Name a number between 0.7 and 0.71, then argue infinitely many exist.

Consecutive integers

Meaning
Whole numbers that DO have a definite neighbor with nothing between.
Key test
Use when working with counting numbers where n+1 is the next one.
Formula
n, n+1
Example
7 is right after 6

Infinity intuition

Meaning
Numbers growing without bound, going OUTWARD forever, not packing between two values.
Key test
Use when the idea is endlessly large, not endlessly subdivided.
Formula
n→∞
Example
There is always a bigger number

Interval

Meaning
The SET of all numbers between two endpoints, the container density fills.
Key test
Use to name the region, not to assert infinitely many points exist.
Formula
(a,b)
Example
All x with 2<x<5

Formula & Notation

For any a<b, there exists c such that a<c<b (e.g., c=a+b2)
A set S⊆R is dense in R if ∀ a,b∈R with a<b, ∃ s∈S such that a<s<b. Both Q and R∖Q are dense in R.

How to read it: a<c<b means c lies strictly between a and b; (a,b) denotes the open interval of all such numbers

Worked Examples

Example 1 — Find one between

Easy

Name a number between 0.7 and 0.71, then argue infinitely many exist.
Show the steps and the answer
  1. Average the endpoints: 0.7+0.712=1.412=0.705.

    The midpoint of two different numbers always lies strictly between them.

  2. Repeat on the left half: 0.7+0.7052=0.7025, then 0.7+0.70252=0.70125.

    Each new midpoint creates a new pair of different numbers, so the step can always be done again.

  3. Show the process never stops: after n halvings the gap is 0.012n, which is still positive.

    A positive gap always has a midpoint, so every step yields a new number, infinitely many in all.

Answer: 0.705 — and infinitely many more

Takeaway: Repeated midpoints prove that any interval, however short, contains infinitely many numbers.

Example 2 — Integers are not dense

Standard

Is there an integer between 4 and 5?
Show the steps and the answer
  1. Write what is being asked: an integer n with 4<n<5.

    Only integers count here, so 4.5 is not an answer.

  2. Use the spacing of the integers: they go up in steps of exactly 1, so the integer after 4 is 5.

    A gap of 1 between consecutive integers leaves no integer strictly inside.

  3. Contrast with the reals: 4.5, 4.25 and 4.001 all lie between 4 and 5.

    The same gap is empty for integers and full for reals, so density depends on which number set you are working in.

Answer: No — integers have no number between neighbors

Takeaway: Before using density, check which numbers are allowed: rationals and reals are dense, integers are not.

Example 3 — Find the mistake: the "next" number after 0.5

Application

Ben writes: "The smallest number greater than 0.5 is 0.51." Find the mistake and correct it.
Show the steps and the answer
  1. Test the claim with a midpoint: 0.5+0.512=0.505, and 0.5<0.505<0.51.

    One number between them is enough to show 0.51 is not the smallest.

  2. Show every replacement fails too: if c>0.5, then 0.5+c2 is greater than 0.5 and less than c.

    Whatever number is offered as 'next after 0.5', its midpoint with 0.5 beats it, so no candidate can win.

  3. Conclude that the numbers greater than 0.5 have no smallest member.

    They crowd toward 0.5 without a first one, which is exactly what density predicts.

Answer: There is no smallest real number greater than 0.5; for example, 0.505 lies between 0.5 and 0.51.

Takeaway: Any claim of a 'next' real number fails: the midpoint of the claimed number and the starting point is always closer.

Where You'll See It

  • Refining a measurement

    A length between 3.4 cm and 3.5 cm can be pinned down as 3.47 cm with a caliper, and as 3.4712 cm with a finer instrument. Density is why that refining could, in principle, go on: there are always values between two readings, so only the instrument sets the limit.

  • Squeezing toward a square root

    A computer can home in on 2 by bisection. 1.42=1.96 is too small and 1.52=2.25 too big, so try the midpoint: 1.452=2.1025, too big. Next try 1.425: 1.4252=2.030625, still too big. Because there is always a number between the two ends, the squeeze can continue for as many digits as needed.

Common Mistakes

  1. The slip: Asking for the next real number

    Instead: reals have no next number; you can always find one closer.

  2. The slip: Thinking close numbers have no room between

    Instead: the midpoint a+b2 always lands strictly between any two distinct reals.

  3. The slip: Confusing density (packing inward) with infinity (growing outward)

    Instead: density subdivides, infinity extends.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Find the midpoint of 2.3 and 2.4.

    Hint: Add the two numbers and divide by 2.

  2. Name three fractions strictly between 13 and 12.

    Hint: Rewrite both with a denominator of 24 and look at the numerators in between.

  3. Find a fraction strictly between 57 and 34.

    Hint: Use the common denominator 28, then double it if no numerator fits between.

  4. Start with 0 and 1. Take the midpoint 12. Then take the midpoint of 0 and 12, and repeat twice more. What numbers do you get, and does this ever stop?

    Hint: Each new point is half of the previous one.

  5. Among the integers, 4 comes right after 3. Is there a real number that comes right after 3?

    Hint: Suppose some c>3 were next. What is 3+c2?

  6. Ana says the next number after 0.9 is 0.91, so nothing lies between them. Correct Ana.

    Hint: Try a number with three decimal places.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Is 0.999… the number just before 1?

No, because density says there is no number just before 1. If 0.999…0.999\ldots were smaller than 1, their midpoint would be bigger than 0.999…0.999\ldots and smaller than 1, yet no decimal fits there, since every digit is already 9. So the gap is zero and 0.999…=10.999\ldots=1. Algebra agrees: 13=0.333…\frac13=0.333\ldots, and multiplying both sides by 3 gives 1=0.999…1=0.999\ldots.

If the rationals are dense, are any numbers missing from them?

Yes, surprisingly many. Between any two rationals there is another rational, yet 2\sqrt2, π\pi and most other real numbers are not rational. Density means no two rationals are neighbours; it does not mean they fill the whole line. In a precise sense the irrationals are far more numerous: the rationals can be listed one by one, and the reals cannot. Even so, the two kinds are woven together: every gap between two irrationals holds a rational, and every gap between two rationals holds an irrational.

Is real-world time or distance dense?

In everyday physics, time and length are modelled with real numbers, so they are treated as dense: between 2.1 seconds and 2.2 seconds there is always another instant. Whether nature truly works that way at the tiniest scales is an open question; some theories suggest a smallest meaningful length, around 10−3510^{-35} m. The mathematics does not depend on the answer, because the real number line is dense by definition, whatever the universe does.

How can infinitely many numbers fit between 0 and 1 when the gap is only 1 long?

Because a point on the line has no width. Halve the gap from 0 to 1 and you get 12\frac12, halve again for 14\frac14, then 18\frac18, and so on: infinitely many points, all inside a length of 1. A pencil mark has thickness, so a drawn ruler fills up, but mathematical points never crowd each other. In fact the short stretch from 0 to 1 holds exactly as many points as the entire number line, a result that cardinality makes precise.

Learning Path

Density of Numbers

You are here

You need the Number Line (numbers as ordered points) and Rational Numbers (fractions and their decimals) first. Density adds the fact that between any two points of the line lie infinitely many more, so no number has a next one. Next, Limit uses this to let values get as close as you like to a target, and Types of Continuity and Discontinuity describe when a graph has no breaks.

See Also