CalculatorSignAll calculators

Math Calculator

Choose a math operation and evaluate two numbers. Calculate a power, real root, remainder, or arithmetic mean with the operation shown.

Math Calculator

Result
—

How do you calculate a power, root, remainder or average?

Choose an operation and enter the two numbers in the order shown. The first value is the base for a power, the number under a root, or the dividend for a remainder. For an average, the order does not matter. The result includes a line identifying the operation so you can check that the inputs were interpreted correctly.

Raise a number to a power

For a power, the second number is the exponent. Enter 9 and 3 to calculate nine cubed, which is 9 × 9 × 9 = 729. A negative exponent represents a reciprocal when the base is nonzero. For example, a base of 2 and exponent −3 gives 1 divided by 8, or 0.125.

For positive bases, some fractional exponents can also represent roots. A power of one half gives the square root of a nonnegative base. When using a negative base, choose an integer exponent for ordinary real-valued exponentiation. If the software cannot represent a finite real result, the input combination returns an error.

Find a real root with a specified degree

Select Root and put the degree in the second field. The number 27 with degree 3 gives 3 because 3 cubed is 27. A degree of 2 asks for the square root. For any positive whole degree, the result describes a number which, raised to that power, produces the original first number.

An odd degree can have a real root for a negative value. The cube root of −64 is −4. An even-degree root of a negative number is outside this calculator’s real-number scope. For a positive input, the tool returns the nonnegative principal root. An equation such as x² = 16 still has solutions of both 4 and −4.

Check integer division with a remainder

For a nonzero divisor, subtract the divisor times the integer quotient from the original number. With 17 divided by 5, the integer quotient is 3 and the remainder is 2. This can answer practical questions such as how many objects remain after making as many complete groups as possible.

The tool truncates the quotient toward zero before finding the remainder. For −17 and 5, the truncated quotient is −3 and the remainder is −2. Some number-theory conventions instead choose a nonnegative remainder. If a homework problem or programming language specifies its own rule, follow that rule when comparing results.

Find the midpoint with a two-value mean

Add both values and divide by two. The mean of 18 and 24 is 21. On a number line, that average is the midpoint between the observations. When the numbers describe comparable measurements that deserve equal weight, this is a simple way to find a central value.

If each number summarizes a different number of observations, use a weighted average to combine the original data. For example, a mean from ten measurements should not automatically count the same as a mean from one hundred measurements. This mode deliberately gives both entered values equal weight.

For an operation selected from a written problem, copy the role of each value next to your answer. The order is important for a power or remainder, and switching the numbers can yield a different problem even if the same digits remain on screen.

Frequently asked questions

What is the difference between a square and a square root?

Squaring multiplies a number by itself. Taking the principal square root of a nonnegative number gives the nonnegative value that would produce it when squared. Use power with exponent two to square a value. Select root and degree two to take its square root.

Why can’t a remainder use a divisor of zero?

The operation is based on an integer quotient from division. Division by zero does not define that quotient, so there is no remainder under this method. Use a nonzero divisor and enter whole numbers in both fields if you want the integer remainder.

Why does a negative odd root work while another negative power fails?

For an odd degree, a negative real number raised to that degree remains negative, so the dedicated root mode can return its real counterpart. A fractional exponent applied to a negative base can be ambiguous or invalid in a real-number model. Use the root mode when the problem explicitly specifies an odd real root.

Can a very large answer exceed the calculator’s range?

Repeated powers can grow beyond the finite range of the browser’s number representation. Very small or large finite results may use scientific notation. If you need exact huge integers for a formal calculation, use software designed for arbitrary-precision arithmetic.

How do I evaluate a longer expression?

Use the linked scientific tool for a formula with several operators or parentheses. This page is organized around one clearly selected operation. Keeping longer expressions in a single formula can reduce rounding when intermediate results are not exact.