Composite Number

Definitionnoun phrase

What is a composite number?

A composite number is a whole number greater than 1 that has more than two factors. It can be divided evenly by a number other than 1 and itself: 12 is composite because 1, 2, 3, 4, 6 and 12 all divide it. Every whole number above 1 is either prime or composite; 1 is neither.

In Spanish
número compuesto
Also called
composite, not prime
Grade level
K-5
Grade 4Grade 5Grade 6CCSS 4.OA.B.4GED

Composite Number in a picture

Composite numbers from 1 to 30A chart of the numbers 1 to 30. The composite numbers 4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24, 25, 26, 27, 28 and 30 are shaded orange with dashed borders. The primes 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29 are green, and 1 is plain because it is neither prime nor composite.Numbers 1 to 30123456789101112131415161718192021222324252627282930composite (dashed)primeneither12 = 2 × 6 = 3 × 4, so 12 is composite
From 1 to 30 there are 19 composite numbers and 10 primes. Every even number after 2 is composite, but so are odd numbers such as 9, 15, 21, 25 and 27.

Formal definition and notation

A whole number n > 1 is composite if it can be written as n = a × b with whole numbers 1 < a ≤ b < n; equivalently, it has a factor other than 1 and n. A whole number greater than 1 that is not composite is a prime number. Every composite number has a prime factor no larger than √n, and it can be written as a product of primes in exactly one way, apart from order.

Symbol Read it as Meaning
n = a × b n equals a times b a factor pair; if a and b are both greater than 1, n is composite
22 × 3 two squared times three the prime factorization of the composite number 12

Key facts

  • 4 is the smallest composite number. The composite numbers below 20 are 4, 6, 8, 9, 10, 12, 14, 15, 16 and 18.
  • Every even number greater than 2 is composite, because 2 is a factor.
  • Every number greater than 5 that ends in 0 or 5 is composite, because 5 is a factor.
  • If the digits add up to a multiple of 3, the number is divisible by 3: 51 (5 + 1 = 6) is 3 × 17.
  • Some odd composites look prime: 9, 15, 21, 27, 33, 49, 51, 57, 87 and 91.

Composite test: find one factor pair

Composite test: find one factor pair
n is composite if n = a × b with 1 < a ≤ b < n
n
the whole number greater than 1 you are testing
a
a small factor to look for: try 2, 3, 5, 7, … up to √n
b
the matching factor, n ÷ a

One factor pair is enough. 221 is not even and its digits sum to 5, but 221 = 13 × 17, so it is composite.

Try it: test a number

Interactive

Type a whole number or press a sample. The tool lists its factors, says whether it is prime or composite, and builds its factor tree. Try 51 and 91, which look prime.

This interactive needs JavaScript. The worked examples below show the same ideas step by step.

Composite Number examples, step by step

Example 1: List the factors

Warm-up

Is 27 composite?

  1. 27 is odd, so 2 is not a factor. Try 3: 27 ÷ 3 = 9.
  2. The factors of 27 are 1, 3, 9 and 27.
  3. That is more than two factors.

Answer: Yes. 27 is composite: its factors are 1, 3, 9 and 27.

Example 2: A number that looks prime

Core

Is 91 prime or composite?

  1. √91 ≈ 9.5, so test the primes 2, 3, 5 and 7.
  2. 91 is odd (not 2), its digit sum is 10 (not 3), and it does not end in 0 or 5 (not 5).
  3. Try 7: 91 ÷ 7 = 13. So 91 = 7 × 13.

Answer: 91 is composite, because 91 = 7 × 13.

Example 3: Count composites in a range

Test-style

How many composite numbers are there from 20 to 30, including 20 and 30?

  1. There are 11 whole numbers from 20 to 30.
  2. Find the primes among them: 23 and 29. (21 = 3 × 7, 25 = 5 × 5, 27 = 3 × 9, and the even ones have factor 2.)
  3. Every other number in the range is composite: 11 − 2 = 9.

Answer: There are 9 composite numbers from 20 to 30.

Common mistakes

✗ Mistake1 is composite, because it is not prime.
✓ Instead1 is neither prime nor composite. It has only one factor, itself.

The number 1 is neither prime nor composite. Composite numbers need more than two factors; 1 has just one.

✗ MistakeAll odd numbers are prime, so 21 is prime.
✓ Instead21 = 3 × 7, so 21 is composite.

Being odd only rules out the factor 2. Test 3, 5, 7 and the other primes too.

✗ Mistake2 is composite because it is even.
✓ Instead2 is prime: its only factors are 1 and 2.

Even numbers greater than 2 are composite because they have the extra factor 2. For 2 itself, that factor is the number.

Not to be confused with

Composite Numbervs.Prime number

A prime has exactly two factors, 1 and itself, like 13. A composite number has more, like 14 (1, 2, 7, 14).

Composite Numbervs.Even number

Even numbers are divisible by 2. Every even number above 2 is composite, but composite numbers can also be odd, like 9 or 35.

Quick check: 3 questions

Question 1 of 3

Which number is composite?

Show answer and explanation

Answer: C. 21 = 3 × 7, so it has the factors 1, 3, 7 and 21. 2 and 13 are prime, and 1 is neither prime nor composite.

Question 2 of 3

Which statement is true?

Show answer and explanation

Answer: D. 1 has only one factor, so it is neither. The smallest composite number is 4, odd numbers such as 9 are composite, and 2 is prime.

Question 3 of 3

What is the smallest composite number?

Show answer and explanation

Answer: A. 4 = 2 × 2 has the factors 1, 2 and 4. 1 is neither, 2 is prime, and 9 is composite but larger than 4.

Composite Number: frequently asked questions

Is 1 a composite number?

No. A composite number must be greater than 1 and have more than two factors. The number 1 has only one factor, itself, so it is neither prime nor composite. Leaving 1 out also keeps prime factorizations unique: 12 is 2 × 2 × 3, with no extra 1s to add.

How do you know if a number is composite?

Look for any factor other than 1 and the number itself. Use divisibility rules first: even numbers are divisible by 2, digit sums that are multiples of 3 mean divisible by 3, and endings of 0 or 5 mean divisible by 5. Then try 7, 11, 13 and so on up to the square root. One factor found proves the number is composite.

Can a composite number be odd?

Yes. Many composite numbers are odd: 9 = 3 × 3, 15 = 3 × 5, 35 = 5 × 7 and 91 = 7 × 13. An odd number just has no factor of 2; it can still have other factors. Only even numbers are automatically composite, and that is true only above 2.

Practice and tools

Sources

  1. Common Core State Standards, Grade 4 Operations and Algebraic Thinking (4.OA.B.4)
  2. OpenStax, Prealgebra 2e, 2.4 Find Multiples and Factors
  3. OpenStax, Prealgebra 2e, 2.5 Prime Factorization and the Least Common Multiple

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 4.OA.B.4

Cite this entry

Effortless Math Team. “Composite Number.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/composite-number/

Flashcard

TermComposite Numbermore than two factors
DefinitionA whole number greater than 1 with more than two factors. 12 is composite: 1, 2, 3, 4, 6, 12. 1 is neither.
Study the full deck

Browse all terms in the Math Dictionary · More number system terms · Random term