Online Scientific Calculator
Trig, logs, powers, roots and factorials with history.
Result (degrees)
Use via API
Evaluate a maths expression safely (no eval): + − × ÷ ^, brackets, factorial (!), percent, trig and inverse trig, hyperbolic, logs, roots, exp, abs, rounding, and the constants pi, e and tau. Send JSON, get JSON back.
POST https://pithlab.com/api/v1/tools/scientific-calculator
curl https://pithlab.com/api/v1/tools/scientific-calculator \
-H "Authorization: Bearer $PITHLAB_KEY" \
-H "Content-Type: application/json" \
-d '{"expression":"2^10 + sqrt(144) * sin(30)","angle":"deg"}'About the Scientific Calculator
A free scientific calculator with trig in degrees or radians, logs, powers, roots, factorials and brackets. Type an expression or use the keypad.
How to use the Scientific Calculator
- Type an expression such as 2(3 + 4)^2 or sin(30), or build it with the keypad.
- Choose degrees or radians for trigonometry. The answer previews as you type.
- Press = or Enter to keep the answer in your history; use ans to reuse the last result.
Examples
Input
2(3 + 4)^2
Output
98
Input
sin(30) + cos(60)
Output
1
Input
pi × 3^2
Output
28.2743338823
Input
log(1000) + ln(e^2) + √16
Output
9
Input
10! / 3!
Output
604800
Frequently asked questions
What order are operations done in?
Brackets first, then functions, factorials and percentages, then powers (right to left, so 2^3^2 = 2^9), then multiplication and division left to right, then addition and subtraction. A leading minus applies after the power, so -2^2 = -4 and (-2)^2 = 4.
Should I use degrees or radians?
Use degrees for everyday angles, such as sin(30) = 0.5. Use radians for maths and physics formulas, where a full turn is 2π. The mode affects sin, cos and tan and the angle returned by asin, acos and atan.
Can I skip the × sign?
Yes. A number or bracket followed by a name or another bracket is multiplied, so 2pi, 3(4 + 5), (1 + 2)(3 + 4) and 2sin(30) all work. Implicit multiplication is evaluated left to right with × and ÷, so 4/2(1 + 1) = 4.
What functions and constants are available?
sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, sqrt (or √), cbrt, ln, log (base 10), log2, exp, abs, floor, ceil and round, plus the constants pi (π), e and tau, and ans for the previous answer. % divides by 100 and ! is the factorial.
How precise are the answers?
Calculations use 64-bit floating point, and answers are shown to 12 significant digits, which hides rounding noise such as 0.1 + 0.2 = 0.30000000000000004. Very large or small results switch to scientific notation like 1.5e-12.