Radical of Integer Calculator

Multiply the distinct primes of an integer to get its squarefree kernel, with a squarefree check.

Math and PercentUpdated 2026-11-182 min read
Radical of Integer Calculator
A whole number from 1 to 1,000,000,000,000.
Radical rad(n)
...
Squarefree...
Prime factorization...

What it does

The radical of an integer is the product of its distinct prime divisors. For 12, which is two squared times three, the radical is two times three, or 6. Every prime that appears contributes exactly once, no matter how high its exponent was in the original number.

Another name for the radical is the squarefree kernel. That name describes the result well: applying the operation twice changes nothing, because the answer already has every exponent equal to one. The radical of the radical is the radical.

This value appears in several places in number theory. It measures how far a number is from being squarefree, it appears in estimates for the abc conjecture, and it helps describe the largest squarefree divisor of an integer. A number is squarefree precisely when its radical equals the number itself.

The page factors the input, multiplies the distinct primes and compares the product with the original value to answer the squarefree question. The factorization is shown alongside so each step can be checked.

All results are exact integers up to one trillion. The radical of a large number is often much smaller than the number itself, which is one reason the value is useful when simplifying problems.

How to use

  1. Enter a whole number n from 1 upward.
  2. Read rad(n) in the main result box.
  3. Check the squarefree flag beside it.
  4. Use the factorization to see which primes were multiplied.
  5. The default n = 12 reproduces the worked example.
  6. Try n = 30 to see a number equal to its own radical.

Formula

rad(n) = product of the distinct primes p that divide n
n
The positive integer being reduced.
p
A distinct prime divisor of n.
rad(n)
The squarefree kernel of n.

If n factors as p1^a1 times p2^a2 and so on, then rad(n) is p1 times p2 and so on, with all exponents set to one. The case n = 1 has no prime factors and gives rad(1) = 1. Repeating the operation leaves the value unchanged, which is why the result is called a kernel.

Worked example

Example: rad(12)

The page opens with n = 12.

  1. Factor 12 into 2^2 x 3.
  2. List the distinct primes: 2 and 3.
  3. Drop the exponent on 2 from two to one.
  4. Multiply the remaining primes: 2 x 3 = 6.
  5. The tool reports radical 6, squarefree No, and factorization 2^2 x 3.
  6. Since 6 is not 12, the original number contains a squared prime.
  7. For 30 the radical is 2 x 3 x 5 = 30, so the squarefree flag would be Yes.

Reference table

Radicals of sample integers
nFactorizationrad(n)Squarefree
1none1Yes
82^32No
122^2 x 36No
302 x 3 x 530Yes
362^2 x 3^26No
722^3 x 3^26No

Limits

  • Only positive integers are accepted.
  • Inputs above one trillion are rejected to keep factoring responsive.
  • The tool gives the kernel, not the largest square divisor.
  • The squarefree flag compares the radical with the input exactly.

Common mistakes

  • Multiplying a repeated prime more than once.
  • Forgetting that the radical of a prime is the prime itself.
  • Assuming the radical of a square is the square root.
  • Treating rad(1) as zero because there are no primes.
  • Confusing this with the product of all divisors.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is rad(30)?

30 = 2 x 3 x 5, so rad(30) = 30 and the number is squarefree.

What is rad(8)?

8 = 2^3, so the only distinct prime is 2 and rad(8) = 2.

What is rad(12)?

12 = 2^2 x 3, so rad(12) = 2 x 3 = 6.

Questions

Why is it called a kernel?

Applying the operation twice gives the same result, which is the defining property of a kernel.

How do I test for squarefree numbers?

Compute the radical and compare it with the original number. Equal values mean the number is squarefree.

Is the radical always smaller?

It is never larger, and it equals the input exactly for squarefree numbers.

What is rad(1)?

It is 1 by convention, since the empty product of primes is one.

Where are radicals used?

In squarefree decomposition, divisor problems and statements connected to the abc conjecture.

What input range works here?

Whole numbers from 1 through 1,000,000,000,000, with an error outside that range.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.