Formula
order of operations: brackets → powers and factorials → × ÷ → + −x^y is right-associative: 2^3^2 = 2^9 = 512−2^2 = −4 (the power is done before the minus sign)
- Functions: sin cos tan asin acos atan sinh cosh tanh ln log log2 sqrt cbrt abs exp floor ceil round root pow mod min max
- Constants: pi, e, tau
- Postfix: ! for factorial (0–170) and % for percent
Standard order of operations, with powers before multiplication.
Worked examples
Brackets and powers
- Expression
- (12+8)*3^2/5
- Angle unit for trig functions
- Degrees
Result
36
Rounded to 4 decimal places: 36
Angle mode: Degrees
Trigonometry in degrees
- Expression
- sin(30)+cos(60)
- Angle unit for trig functions
- Degrees
Result
1
Rounded to 4 decimal places: 1
Angle mode: Degrees
How it works
Type the whole calculation as you would write it. Brackets, + − × ÷ and ^ for powers work as expected, a factorial is written 5!, a percent is written 50%, and implicit multiplication is accepted, so 2(3 + 4) and 2pi both work. Trigonometric functions take degrees by default; switch to radians when you need them. log(x) is base 10, ln(x) is natural, and log(x, b) takes any base.
The expression is read by a small parser that only understands the operators, constants and functions listed above — it never runs your text as code. Precision is standard double-precision arithmetic, about 12–15 significant digits, so values such as sin(30°) are shown cleanly as 0.5. Division by zero, the square root of a negative number and similar mistakes give a plain-English message that points to the character involved.
For a quadratic or a pair of equations use the Quadratic Equation Solver or Linear Equation Solver; for powers and roots with more detail see the Exponent Calculator, Square Root Calculator and Logarithm Calculator. For percentages use the Percentage Calculator.
Assumptions and limits
- Real numbers only: results that would be complex are reported as errors.
- 6 ÷ 2(1 + 2) is read as (6 ÷ 2) × 3 = 9, treating implicit multiplication like ×.
- Factorials are limited to 170! because larger values overflow double precision.