Change language

Mathematics

Online calculator

Type the whole expression and get the result instantly, brackets and functions included.

Reviewed by SolucionesAhora.com How we verify

Calculator inputs

Use + − * / ^ ( ) and functions such as sqrt(), sin(), ln()

Results

Enter your values and press “Calculate” to see the result.

In short

What it calculates
Type the whole expression and get the result instantly, brackets and functions included.
Formula used
Operator precedence applied:
Example
Expression: (15 + 7) * 3 / 2

Online calculator

Unlike a button calculator, here you type the whole expression exactly as you would write it on paper. That removes the most common mistake: losing track halfway through a long calculation.

The expression is parsed following operator precedence, so 2 + 3 * 4 returns 14, not 20.

How it works

Your text is turned into an operation tree before anything is computed. Brackets are resolved first, then powers, then multiplication and division, and finally addition and subtraction.

You can use constants (pi, e) and functions by typing their name followed by brackets: sqrt(16), abs(-5), round(2.7).

Formula

Operator precedence applied:

1. Brackets ( )
2. Functions and factorial !
3. Powers ^ (right-associative)
4. Multiplication *, division / and remainder %
5. Addition + and subtraction −

Worked example

Expression: (15 + 7) * 3 / 2

1. Brackets: 15 + 7 = 22
2. Multiplication: 22 * 3 = 66
3. Division: 66 / 2 = 33

Result: 33

Explanation

Everything is calculated in your browser

Nothing is sent to any server. The numbers you type never leave your machine, so you can use it with data you would rather not share. It is also why it works instantly and offline once the page has loaded.

Order of operations is not negotiable

Brackets first, then powers, then multiplication and division left to right, and finally addition and subtraction. Typing 2 plus 3 times 4 gives fourteen, not twenty. When in doubt, brackets are free and settle arguments: the viral puzzle that divides the internet every few months is resolved by adding them.

The minus in front of a power

Minus two squared gives minus four if read as the negative of two squared, and four if the sign is taken as part of the base. The mathematical convention is the first. To express the second you must write the brackets explicitly.

Decimals are not exact in binary

Zero point one plus zero point two does not give exactly zero point three in any system using floating point, spreadsheets included. The differences appear around the fifteenth decimal place and only matter in chained high precision calculations.

Frequently asked questions

Which functions are available?

sqrt, cbrt, abs, sign, round, floor, ceil, trunc, exp, ln, log, log2, log10, sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, fact, deg and rad.

How do I type a power?

Use the ^ symbol. For example, 2^10 returns 1024. Roots can be written as fractional powers: 27^(1/3).

Are calculations sent to a server?

No. The expression is solved in your browser, so it works even on a slow connection.

What is 2 + 3 × 4?

Fourteen. Multiplication resolves before addition, so 3 times 4 is calculated first and then 2 is added.

Are my calculations sent to a server?

No. Everything happens in your browser and the numbers never leave your machine.

Need to calculate something else?

These tools are often used alongside this calculator.

Scientific

Trigonometry, logarithms, exponentials and factorials, with a degrees/radians switch.

Percentage

The four most common percentage calculations in a single tool.

Fractions

Add, subtract, multiply or divide two fractions and get the result already simplified.

Roots

Calculate roots of any index, including negative numbers with an odd index.

Powers

Raise any number to an integer, decimal or negative exponent.

Rule of three

Solve direct and inverse proportions by entering the three known values.