1. Home
  2. Units & Currency
  3. Scientific Calculator

Scientific Calculator

Type the whole expression and keep a history of your results.

Runs in your browser · No upload
Examples: sin(30)+2^3, 2π, 5!, log(8,2), √(16), 10%3, ans*2
Result
8.5

History

Press = or Enter and results pile up here.

How to use

  1. Type the whole expression on one line. For example, sin(30)+2^3 shows 8.5 right away. You can also tap the on-screen keys.
  2. Under Angle unit, pick degrees (DEG) or radians (RAD). Trig and inverse trig functions follow that setting.
  3. Press the = button or Enter to add the result to the history. The expression box then holds that result, so you can keep going. ans stands for the previous result, and clicking a history row loads that expression again.

Supported symbols and functions

Group Input Notes
Arithmetic, powers + - * / ^ ×, ÷ and ** work too. ^ groups from the right
Remainder, percent 7%3, 50% followed by a number it’s a remainder (1), otherwise a percent (0.5)
Factorial, roots 5!, √(16), sqrt(16) also fact(5), cbrt(27), root(81,4)
Trigonometry sin cos tan sec csc cot degrees or radians
Inverse trig asin acos atan atan2(y,x) result in the chosen angle unit
Hyperbolic sinh cosh tanh asinh acosh atanh
Logs, exponent ln log log10 log2 exp log(x) is base 10, log(8,2) uses base 2
Rounding round(x,n) floor ceil abs sign round(3.14159,2) = 3.14
Combinatorics, misc ncr(n,r) npr(n,r) min max pow mod deg(x) and rad(x) convert angle units
Constants pi π e tau ans tau = 2π

Parentheses nest freely, and you can leave out the multiplication sign in 2π, 3(4+5) or 2sin(30). Two bare numbers such as 2 3 are an error.

Order of operations

Operations run in this order: parentheses and functions, factorial (!) and trailing %, powers (^), a leading minus, multiply, divide and remainder, then add and subtract. So -2^2 is -4 and (-2)^2 is 4, and 2^3^2 groups from the right as 2^(3^2) = 512. 1/2π is read left to right as (1/2)×π, so write 1/(2π) to put π in the denominator.

Worked examples

Input Mode Result
sin(30)+2^3 degrees 8.5
cos(60) degrees 0.5
atan(1) degrees 45
atan(1) radians 0.785398163397
sin(pi/2) radians 1
log(8,2) either 3
5! either 120
ncr(52,5) either 2598960
100*1.05^10 either 162.889462678
1/3 either 0.333333333333

Results show 12 significant digits, and very large or very small values use exponent notation such as 1.5e-7. Multiples of 90 degrees such as sin(180) or cos(90) return exactly 0 or 1, and tan(90) is reported as undefined.

Things to keep in mind

  • The calculator works with real numbers only. The square root of a negative number, ln(0) and asin(2) all give an error.
  • Because computers use floating-point arithmetic, very large or very precise calculations can be off in the last digit. Results are rounded to 14 significant digits, so 0.1+0.2 shows 0.3, but this isn’t the right tool for money math where every cent counts.
  • Expressions are read by a parser built for this tool, which never runs program code. Input is limited to 500 characters.
  • For percentages, fractions and averages, the percent calculator, fraction calculator and average calculator are easier to use. For probability and combinations see the probability calculator, for angle units the angle converter, and for number bases the number base converter.

FAQ

How do I choose degrees or radians?

Pick DEG if the angle you give a trig function is in degrees, and RAD if it’s in radians. The same sin(30) is 0.5 in degree mode and -0.988032 in radian mode. To convert between the two, use deg(x) and rad(x).

What is the base of the log function?

log(x) is the base-10 logarithm and ln(x) is the natural logarithm. For another base, give it as a second value, as in log(8,2).

How does it tell percent from remainder?

If a number or parenthesis comes right after the %, it’s a remainder. Otherwise it divides by 100. 10%3 is 1 and 200*10% is 20.

How do I continue from the last result?

Pressing = replaces the expression with its result, so just type an operator to keep going. You can also type ans to insert the most recent result.

Are my expressions and history sent to a server?

No. Expressions and history are processed only in your browser and never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.