Mathwords logoMathwords

Closed Interval

Closed Interval

An interval that contains its endpoints.

 

Number line showing closed interval [-2, 3] with solid dots at endpoints -2 and 3, and a line segment between them.

 

 

See also

Interval notation, open interval, half-closed interval, half-open interval

Key Formula

[a,b]={xR    axb}[a,\, b] = \{\, x \in \mathbb{R} \;|\; a \le x \le b \,\}
Where:
  • aa = The lower endpoint (left boundary) of the interval
  • bb = The upper endpoint (right boundary) of the interval
  • xx = Any real number that satisfies $a \le x \le b$

Worked Example

Problem: Determine whether the values 1, 3.5, and 7 belong to the closed interval [1,7][1, 7].
Step 1: Write out the condition for membership in the interval. A number xx is in [1,7][1, 7] when:
1x71 \le x \le 7
Step 2: Test x=1x = 1. Since 1171 \le 1 \le 7 is true, the value 1 is in the interval. Notice that the endpoint itself is included because the interval is closed.
1171 \le 1 \le 7 \quad \checkmark
Step 3: Test x=3.5x = 3.5. Since 13.571 \le 3.5 \le 7 is true, this value is also in the interval.
13.571 \le 3.5 \le 7 \quad \checkmark
Step 4: Test x=7x = 7. Since 1771 \le 7 \le 7 is true, the upper endpoint 7 is included as well.
1771 \le 7 \le 7 \quad \checkmark
Answer: All three values — 1, 3.5, and 7 — belong to the closed interval [1,7][1, 7].

Another Example

This example differs by using negative numbers and by computing the interval's length, showing that a closed interval contains infinitely many real numbers even though only six of them are integers.

Problem: List all integers in the closed interval [2,3][-2, 3] and find the length of the interval.
Step 1: Identify the membership condition: xx is in [2,3][-2, 3] when 2x3-2 \le x \le 3.
2x3-2 \le x \le 3
Step 2: List the integers satisfying this inequality. Because the interval is closed, 2-2 and 33 are both included.
{2,1,0,1,2,3}\{-2,\, -1,\, 0,\, 1,\, 2,\, 3\}
Step 3: Calculate the length of the interval by subtracting the lower endpoint from the upper endpoint.
Length=3(2)=5\text{Length} = 3 - (-2) = 5
Answer: The integers in [2,3][-2, 3] are {2,1,0,1,2,3}\{-2, -1, 0, 1, 2, 3\}, and the interval has length 5.

Frequently Asked Questions

What is the difference between a closed interval and an open interval?
A closed interval [a,b][a, b] includes both endpoints, so aa and bb are part of the set. An open interval (a,b)(a, b) excludes both endpoints, meaning aa and bb are not part of the set. Graphically, closed intervals use filled-in dots at the endpoints, while open intervals use hollow circles.
When do you use square brackets versus parentheses in interval notation?
Use square brackets [  ][\;] when the endpoint is included in the interval (closed side) and parentheses (  )(\;) when the endpoint is excluded (open side). For example, [2,5)[2, 5) includes 2 but not 5. You always use a parenthesis next to \infty or -\infty because infinity is not a real number and cannot be reached.
Can a closed interval contain just one point?
Yes. If a=ba = b, then [a,a]={a}[a, a] = \{a\}, which is a valid closed interval containing exactly one point. This is sometimes called a degenerate interval. In contrast, the open interval (a,a)(a, a) would be empty.

Closed Interval vs. Open Interval

Closed IntervalOpen Interval
Notation[a,b][a, b] — square brackets(a,b)(a, b) — parentheses
EndpointsBoth aa and bb are includedNeither aa nor bb is included
Inequalityaxba \le x \le ba<x<ba < x < b
Number line graphFilled (solid) dots at endpointsHollow (open) circles at endpoints
Contains its boundary?Yes — the interval equals its closureNo — the endpoints are outside the set
Example: does 5 belong?5[3,5]5 \in [3, 5] — yes5(3,5)5 \notin (3, 5) — no

Why It Matters

Closed intervals appear throughout algebra and calculus. When you state the domain or range of a function, choosing a closed versus open interval determines whether boundary values are valid. In calculus, the Extreme Value Theorem guarantees that a continuous function on a closed interval [a,b][a, b] attains both a maximum and a minimum — a result that fails on open intervals, making the distinction critical for optimization problems.

Common Mistakes

Mistake: Using parentheses when you mean to include the endpoints, writing (2,5)(2, 5) instead of [2,5][2, 5].
Correction: Remember: square brackets mean "included" (think of them as walls that keep the endpoint in). Parentheses mean "excluded." Double-check your inequality: \le pairs with [  ][\;], while << pairs with (  )(\;).
Mistake: Writing [3,][3, \infty] with a square bracket next to infinity.
Correction: Infinity is not a real number, so it can never be "reached" or included. Always write [3,)[3, \infty) with a parenthesis on the infinity side.

Related Terms

  • IntervalGeneral concept that closed intervals are a type of
  • Interval NotationNotation system using brackets and parentheses
  • Open IntervalInterval that excludes both endpoints
  • Half-Open/Half-Closed IntervalInterval that includes one endpoint but not the other
  • DomainOften expressed using closed intervals
  • RangeOutput set frequently written as a closed interval
  • InequalityClosed intervals correspond to ≤ inequalities