Code tool

Root Calculator

Enter a number and a positive integer root index to calculate its real nth root locally.

In-browser processingNo account requiredPrivacy details ↗

Use a finite number from −10¹² to 10¹² and an integer index from 1 to 99.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter a number between −10¹² and 10¹².
  2. Choose an integer root index from 1 to 99.
  3. Calculate the real result or receive a clear domain error.

Real-domain rules

Negative numbers are accepted for odd indices and rejected for even indices because their real even roots do not exist.

Bounded inputs

The number is limited to ±10¹² and the integer index to 1–99. Zero is rejected as an index.

Local calculation

Validation and calculation happen in your browser; values are not uploaded or stored.

GOOD TO KNOW

Common questions

Can I calculate a cube root of a negative number?

Yes. Odd indices return the signed real root.

What happens for a negative square root?

The tool reports that no real result exists.

Can the index be zero?

No. Zero is outside the root definition used here.