Welcome back to The Real Number System and Irrationality! In the first lesson of this course, you learned that irrational numbers are those that cannot be written as a ratio of integers, and that their decimals neither terminate nor repeat. With that foundation in place, we are ready to move forward.
In this second lesson, we turn from the general definition to two specific and celebrated examples: the constants π and e. These are arguably the most famous irrational numbers in all of mathematics, and every math and science student is expected to recognize them on sight. We will learn where each one comes from, commit their standard approximate values to memory, and examine exactly why their decimal behavior marks them as irrational.
Why Some Irrationals Are Famous
Not all irrational numbers are created equal. A number like 0.101001000100001… is irrational, but it was invented just to illustrate a concept. Nobody uses it to design a bridge, model a bank account, or calculate the area of a park.
π and e are different. They emerge naturally from real-world phenomena — circles and continuous growth, respectively — and they appear in formulas across geometry, physics, engineering, finance, and statistics. Their importance is why mathematicians spent centuries studying their properties and ultimately proved that both are irrational. Because these constants show up so frequently, knowing their approximate values and understanding why they are irrational is practical knowledge you will use again and again.
The Number π
The constant π (spelled "pi") arises from one of the simplest shapes in geometry: the circle. If we take any circle and divide its circumference by its diameter, we always get the same number:
π=diametercircumference
No matter how large or small the circle is, this ratio is always π. Its decimal expansion begins:
The Number e
The constant e is sometimes called Euler's number, after the Swiss mathematician Leonhard Euler. While π comes from circles, e emerges from the study of continuous growth and appears naturally when we model compound interest, population growth, and radioactive decay.
One intuitive way to see where e comes from is to imagine investing $1 at 100% annual interest and compounding more and more frequently. As the number of compounding periods grows without bound, the total amount approaches a fixed limit — and that limit is e:
e=n→∞lim(
Approximations Are Not Exact Values
Now that we know the approximate values of both constants, it is important to address a widespread misconception: many people believe that π equals722. The fraction 7 is a handy approximation, but it is exact. We can check by dividing:
Contrasting with a Rational Decimal
To sharpen our understanding, let's place π alongside a rational number that also has many decimal digits. Consider 71:
7
Conclusion and Next Steps
In this lesson, we met two of the most important irrational constants in mathematics. π is the ratio of a circle's circumference to its diameter, approximately 3.14 (or 3.1416 to four decimal places). e is Euler's number, tied to continuous growth, approximately 2.72 (or 2.7183 to four decimal places). Both have decimal expansions that go on forever without repeating, and no fraction of integers can represent either one exactly.
Now it's time to put these ideas to work! In the upcoming practice exercises, you will recall the standard approximations, tackle common true-or-false misconceptions, and explain in your own words why π and e are irrational by contrasting their decimal behavior with that of a repeating decimal like .
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal
π=3.14159265358979…
Those digits continue forever without ever settling into a repeating block. Computers have calculated trillions of digits of π, and no repeating cycle has appeared — nor will one ever appear — because π has been proven to be irrational.
For everyday work, we rely on rounded approximations. The two most common are:
Rounded to two decimal places: π≈3.14
Rounded to four decimal places: π≈3.1416
Commit these to memory. Whenever a problem says "use π≈3.14," it is asking for this standard shortcut, not the exact value.
1
+
n1
)
n
=
2.71828182845904…
Caution: You might notice that the digits "1828" appear twice in a row at the start of the expansion (2.718281828…). This is just a coincidence! It does not establish a repeating cycle. If you look at the digits that follow, the pattern disappears immediately.
If the limit notation above is new to you, don't worry about the formula itself. The key takeaway is that e is a specific, fixed number — roughly 2.718 — that shows up whenever continuous growth is involved. Like π, its decimal digits go on forever without repeating, and it has been proven to be irrational.
Here are the standard rounded values worth memorizing:
Rounded to two decimal places: e≈2.72
Rounded to four decimal places: e≈2.7183
22
not
722=3.142857
Notice the repeating block 142857. Because this decimal eventually repeats, 722 is rational. Since π is irrational, the two numbers cannot be equal. In fact, 722≈3.142857… while π≈3.141592…, so they already differ in the third decimal place.
The same caution applies to e. Writing e=2.718 is technically incorrect; the accurate statement is e≈2.718. Every fraction and every rounded decimal we use for π or e is just a convenient stand-in. No fraction of integers will ever equal π or e exactly.
Statement
True or False?
Why?
π=3.14
False
3.14 is a rounded approximation
π=722
False
722 is rational; π is not
π≈3.1416
True
Correct use of the "approximately equal" symbol
e=2.718
False
2.718 is a rounded approximation
e≈2.72
True
Correct rounding to two decimal places
1
=
0.142857=
0.142857142857142857…
This decimal never terminates, so at first glance it might look similar to an irrational expansion. But watch closely: the six-digit block 142857 repeats over and over in an endless but perfectly predictable cycle. That repeating pattern is exactly what makes 71 rational.
Now compare that with the first several digits of π:
π=3.14159265358979323846…
No matter how far we extend this expansion, we will never find a block of digits that starts cycling. The digits keep going in a way that is entirely non-periodic. This is the hallmark of irrationality: a decimal that is both non-terminating and non-repeating. The same is true for e, whose digits 2.71828182845904… likewise never lock into a repeating pattern.