Scientific Calculator

Expression 0
0
Angle unit
Settings
Case colour
Display colour
Digits
Layout

A free scientific calculator for school, university and work. Type a whole expression, see the result update as you go, and switch between degrees and radians. It handles trigonometry, logarithms, powers and roots, factorials, combinations, fractions and memory, and it runs entirely in your browser.

What the scientific calculator does

  • Sine, cosine and tangent, their inverses and hyperbolic forms
  • Degrees, radians and gradians
  • Natural and common logarithms, and logarithms to any base
  • Powers, roots and factorials
  • Combinations (nCr) and permutations (nPr)
  • Results as fractions or decimals
  • Scientific, engineering and fixed-decimal (FIX) number formats
  • Memory, History and full keyboard input

How to use the scientific calculator

  1. Type the expression the way you would write it, with the keys or your keyboard. A function key such as sin or log opens its parenthesis for you: type the value, then close it or just press =.
  2. The line under the expression shows a preview of the result while you type. Press = or Enter to keep it; it becomes Ans, which the next calculation can use.
  3. Press 2nd for the functions printed second on a key, such as sin⁻¹, √ or 10ˣ. It applies to the next key only; press it twice quickly to keep it on.
  4. Use the arrow keys to move the cursor inside the expression and fix a typo without starting again. After a result, ← brings the expression back for editing.
  5. Choose DEG or RAD above the keys before you use sin, cos or tan. Your choice is remembered on this device.

Degrees or radians?

Trigonometric functions depend on the angle unit. In degrees a full turn is 360; in radians it is 2π, about 6.283. The same key press gives different answers: sin(30) is 0.5 in degrees but about −0.988 in radians, because 30 radians is almost five full turns.

Use degrees for geometry, surveying and most school problems, and radians for calculus, physics formulas and anything with π in the angle, such as sin(π/6) = 0.5. Inverse functions answer in the unit you have selected: sin⁻¹(0.5) gives 30 in degrees and π/6 ≈ 0.5236 in radians.

Exact angles give exact answers: sin(180°) is 0 and tan(45°) is 1, not a tiny rounding leftover. Values that do not exist, such as tan(90°), are reported as an error. To enter an angle in another unit, type deg(…), rad(…) or grad(…): sin(grad(100)) is 1 in either mode.

GRAD is the third angle unit, used in surveying and in parts of Europe: a right angle is 100 gradians and a full turn 400, so sin(100) is 1 and cos(200) is −1 in GRAD. The display shows DEG, RAD or GRAD, and the D key on a keyboard cycles through the three.

Functions and keys

Every key below can also be typed. A function always takes its value in parentheses, so write sin(30), not sin 30.

Scientific functions with an example of each
KeyWhat it calculatesExample
sin cos tanSine, cosine and tangent of an anglesin⁡(30∘)=0.5
sin⁻¹ cos⁻¹ tan⁻¹Inverse functions: the angle with this sine, cosine or tangenttan⁡−1(1)=45∘
ln · eˣNatural logarithm (base e) and e to the power of xln⁡(e)=1
log · 10ˣCommon logarithm (base 10) and 10 to the power of xlog⁡(1000)=3
x² x³ xʸSquare, cube and any power210=1024
√x ∛x ʸ√xSquare root, cube root and the y-th root of x814=3
x⁻¹Reciprocal, 1 divided by x4−1=14=0.25
x!Factorial of a whole number from 0 to 1705!=120
nCr · nPrCombinations and permutations of r items out of n(52)=105P2=20
modRemainder of a division17 mod 5=2
EXPScientific notation: times ten to the power of3×108
|x|Absolute value, the distance from zero∣−7∣=7
HYPHyperbolic functions: press HYP, then sin, cos or tan (with 2nd, their inverses)sinh⁡(0)=0cosh⁡(0)=1
logyx · log2Logarithm to any base: type the base, press logᵧx, type x; 2nd gives log₂log⁡28=3
(−)Negative sign for the next number; after a result, its negative−3×4=−12
Rnd(x)Round to the nearest whole number, halves away from zeroround⁡(2.5)=3
GRADGradians: a right angle is 100, a full turn 400sin⁡(100g)=1
exp deg rad gradTyped only: the exponential function and the angle converters deg(), rad(), grad()exp⁡(1)=e

Order of operations

The calculator follows standard precedence: parentheses and functions first, then factorials and percentages, then powers and roots, then the sign of a number, then nCr and nPr, then multiplication, division and modulo, and finally addition and subtraction. Powers and roots group from the right and every other level from left to right. A number in front of a parenthesis, π or a function is multiplied, so 2π and 3sin(30) need no × sign. The table shows one example of each rule.

Order of operations, one example per rule
CalculationResultRule
2+3×414Multiplication before addition
(2+3)×420Parentheses first
23229=512Powers group from the right
−22−4The minus sign applies after the power
3!262=36Factorial before power
5C2×210×2=20nCr before multiplication
2(3+4)2×7=14A number before a parenthesis multiplies it
12÷3÷24÷2=2Same level: left to right

Number formats and fractions

Auto shows ordinary numbers up to 12 significant digits and switches to scientific form, such as 1.5×10¹², only for very large or very small results. Scientific always shows one digit before the decimal point. Engineering uses powers of ten that are multiples of three, matching kilo, mega, milli and micro.

The format you choose is shown on the display — SCI or ENG next to DEG or RAD — and applies at once to the result, the live preview and History, even to a zero (0×10⁰). Ordinary numbers look the same in Auto as you typed them, so try a result such as 56 or 0.0012 to see the difference. Engineering keeps the exponent a multiple of 3, which matches unit prefixes: 10³ kilo, 10⁻³ milli, 10⁻⁶ micro.

The same values in each number format
ValueAutoScientificEngineering
56565.6×10156×100
345.6345.63.456×102345.6×100
0.00120.00121.2×10−31.2×10−3
0.000560.000565.6×10−4560×10−6
000×1000×100

When a result is an exact fraction, the a/b button shows it as one: 0.75 becomes 3/4 and 1/3 + 1/6 becomes 1/2. The button is unavailable for results that are not exact fractions, such as π, √2 or sin(1).

Memory, History and sharing

M+ adds the current result to memory and M− subtracts it; MR inserts the stored value and MC clears it. An M on the display shows that memory holds a value. Memory stays on this device until you clear it.

History keeps your last 50 calculations. Select one to load it again. The share button creates a link that opens this calculator with the same expression and angle unit; the expression stays in the part of the link after #, so it is never sent to our server.

Textbook display

The expression line is drawn like written maths: powers are raised, √ and ∛ draw a bar over what they apply to, and results in scientific form are written as ×10 with a raised exponent. An empty box shows where the next key goes, for example the exponent after xʸ, and the cursor moves through all of it.

Copy and share confirm what happened: the button turns green with a check and a short message such as “Copied” or “Link copied”, or red with the reason when the browser refuses. Exact fractions are drawn stacked, one number over the other, when you select a/b.

Appearance: case colour and large keys

Under the calculator, Appearance offers four case colours — Graphite, Silver, Retro and Midnight — and Large keys for touch screens or easier reading. The choice is remembered on this device and shared with the basic calculator. It changes only how the calculator looks, never what it calculates.

Keyboard shortcuts

Click the calculator or tab to it, then type. Digits and operators also work from anywhere on the page while “Type with the keyboard” is on; letter shortcuts only work while the calculator has focus, so they never clash with the rest of the page.

Keyboard shortcuts of the scientific calculator
KeyWhat it does
0–9 .Digits and the decimal point (the comma also works where it is the decimal mark)
+ - * / ^Add, subtract, multiply, divide and raise to a power
( ) ! %Parentheses, factorial and percent
Enter =Calculate the result
BackspaceDelete the character before the cursor
Esc DeleteClear everything
← → Home End ↑ ↓Move the cursor; ↑ and ↓ go through History
p e E s c t l L r aπ, e, EXP, sin, cos, tan, ln, log, √ and Ans
dSwitch between degrees and radians

Arithmetic and limits

Numbers are read exactly as you type them, and +, −, ×, ÷, %, whole-number powers, n!, nCr, nPr, mod, abs and Rnd work with exact fractions, so 0.1 + 0.2 is exactly 0.3 and 1 ÷ 3 × 3 is exactly 1. sin, cos, tan, logarithms, eˣ, π and roots that do not come out exact use 64-bit floating point, accurate to about 16 significant digits. Every result is rounded once to 12 digits for display, and results above about 1.8×10³⁰⁸ are reported as too large.

Factorials are defined for whole numbers from 0 to 170, and nCr and nPr for whole numbers up to 10,000. The calculator works with real numbers only: √(−4), ln(0) and sin⁻¹(2) are errors, and so is a fractional power of a negative number, such as −8 raised to the power 1/3; use ∛(−8) = −2 for the real cube root. In radians, a whole number too large to be stored exactly (from about 9×10¹⁵) gives an argument error rather than wrong digits.

An expression can be up to 1,000 characters long, and a pasted one up to 256. Your calculations, memory and History are stored only in this browser.

Accuracy and test cases

This calculator is tested automatically before every release against 408 cases. Each expected value was worked out independently, with exact fractions and, for functions such as sin and ln, 60-digit series, so the checks do not simply repeat what the calculator says. Below is a selection; the button runs every case in your browser, on the calculator above.

Selected test cases: the exact value, what the calculator shows, and what plain floating-point arithmetic gives
CalculationExact valueCalculator shows64-bit floating pointYour browser
Decimal fractions Binary floating point cannot store 0.1 exactly; this calculator keeps the exact decimal.
0.1+0.23100.30.30000000000000004—
1.1×333103.33.3000000000000003—
4.35×100435435434.99999999999994—
0.1+0.2−0.3005.551115123125783×10−17—
0.3÷0.1332.9999999999999996—
Division and repeating decimals 1 ÷ 3 is kept as the fraction 1/3, so multiplying back by 3 gives exactly 1.
1÷3×311—
13−0.33333333333313×10123.33333333333×10−133.33288951992472×10−13—
Percent Adding or subtracting a percentage changes a number by that share of itself: 200 + 10% = 220.
200+10%200×1.1=220220—
19.99+8.25%21.63917521.639175—
Order of operations Powers first, from the right; then × and ÷; then + and −.
23229=512512—
−22−(22)=−4−4—
Powers and large whole numbers Whole-number powers are exact; the screen shows 12 significant digits of them.
264184467440737095516161.84467440737×101918446744073709552000—
253+190071992547409939.00719925474×10159007199254740992—
1016+1−1016110—
Factorials and combinations Exact up to 170!, and nCr and nPr for whole numbers up to 10,000.
20!24329020081766400002.43290200818×1018—
(6030)1182645815648614241.18264581565×1017118264581564861420—
Roots A root that comes out exact is exact (√2.25 = 1.5); the others are rounded to about 16 digits.
94321.5—
2783321.5—
Limits Beyond about 1.8×10³⁰⁸ a result is reported as too large.
9999387420489>1.8×10308Result too large—
Errors A calculation with no real result shows a message instead of a number.
1÷0—Cannot divide by zero—
Memory and repeated = M+, M− and a repeated = keep the exact value.
M+ 0.1, M+ 0.2, M− 0.3005.551115123125783×10−17—
Trigonometry Degrees, radians and grads; table angles give exact values, such as sin 30° = 0.5.
sin⁡30∘120.5—
tan⁡90∘—Not a real number—
sin⁡π6 (rad)120.5—
Logarithms and exponentials Rounded to about 16 digits; whole results such as log₂ 8 = 3 are exact.
log⁡10100033—
mod, abs and round Exact on exact numbers; the result of mod takes the sign of the divisor.
−7 mod 322—
Number formats SCI, ENG and FIX change only the display; FIX rounds the exact value once, half up.
12345 (ENG)12.345×10312.345×103—
2.675 (FIX 2)2.682.682.67—

How the expected values were made: exact fractions of whole numbers of any size; π by Machin’s formula; sin, cos, eˣ and ln by their power series to 60 digits; then rounded once, half up, to the 12 digits on the screen. The floating-point column is what a program that uses only 64-bit IEEE 754 numbers prints.

For tasks that need more than one expression, a dedicated calculator is faster:

Frequently asked questions

Why does sin(30) give −0.988 instead of 0.5?

The calculator is in radians. Select DEG above the keys and sin(30) gives 0.5. The selected unit is shown on the display next to the result.

How do I type a number like 6.02×10²³?

Type 6.02, press EXP, then type 23. EXP joins the power of ten to the number, so it behaves as one value inside larger expressions; on a keyboard, type 6.02E23.

What is the difference between log and ln?

log is the logarithm in base 10, so log(1000) = 3. ln is the natural logarithm in base e ≈ 2.718, so ln(e) = 1. Press 2nd on the same keys for the inverse functions, 10ˣ and eˣ.

How do I calculate combinations like 5C2?

Type 5, press nCr, then type 2: the result is 10. With 2nd the same key gives nPr, the number of ordered arrangements, so 5P2 is 20. Both work for whole numbers up to 10,000.

Can it show the answer as a fraction?

Yes, when the answer is an exact fraction. After pressing =, use the a/b button to switch between 3/4 and 0.75. Results involving π, roots or trigonometry stay decimal.

Does it work offline and on my phone?

Once the page has loaded, every calculation runs in your browser, so a weak connection does not slow it down. The layout adapts to phones, and keys are large enough to tap.

Why do Scientific and Engineering not change my answer?

They change how a number is written, not its value, and Auto already shows ordinary numbers in full. Choose Scientific with a result like 56 and it becomes 5.6×10¹; Engineering shows 0.00056 as 560×10⁻⁶. SCI or ENG on the display confirms which format is on.

Can I change the colours or make the keys larger?

Yes. Open Appearance under the calculator to pick a case colour and switch on Large keys. Every scheme keeps the text easy to read, and your choice is saved in this browser.

How do I calculate sinh, a logarithm to base 2 or to any base?

Press HYP and then sin, cos or tan for sinh, cosh or tanh; add 2nd for the inverse functions. For a logarithm to base y, type y, press logᵧx and type x: 2 logᵧx 8 = 3, shown as log₂ 8. Press 2nd and the same key for log₂ directly.