Scientific Calculator

A free scientific calculator with trig, logs, roots, memory and history, on any device.

Angle unit

History

Answers appear here when you press =. Tap one to use it again. They're saved on this device only.

    Keyboard shortcuts
    Keyboard shortcuts
    Enter or =Work out the answer
    EscClear the calculation
    BackspaceDelete (a whole sin( at once)
    ↑ ↓Step through earlier calculations
    * / or x× and ÷
    ^ ! %Power, factorial, percent
    sin cos tan asin ln log sqrt pi e ansType the name

    Why use this scientific calculator?

    It works like a good handheld calculator, without the batteries. Type a whole calculation the way it's written, watch the answer update as you go, and fix a typo anywhere instead of starting again. Behind the scenes it keeps exact fractions, so 0.1 + 0.2 is 0.3 and 1 ÷ 3 × 3 is exactly 1. It handles degrees, radians and gradians, inverse and hyperbolic trig, logs to any base, roots, factorials and combinations, and it keeps your last 50 answers on this device. Nothing is uploaded, and it keeps working offline once the page has loaded. For everyday sums with percentages, the percentage calculator shows its working.

    How to use it

    1. Pick DEG, RAD or GRAD for angles. Degrees suit most school and everyday work.
    2. Tap the keys or type on your keyboard. Functions such as sin( open a bracket; any you leave open are closed for you.
    3. The answer appears as you type. Press = or Enter to keep it; tap 2nd for the functions printed above the keys.
    4. Carry on from the answer with an operator, or tap a line in History to use it again.

    What every key does

    Each example below was worked out by this calculator, in degree mode. Keys with a small blue label give that function when you press 2nd first.

    Scientific calculator functions with examples
    KeysWhat it doesExample
    sin · cos · tanSine, cosine and tangent of an angle, in the unit you chosesin(30) = 0.5
    2nd → sin⁻¹ · cos⁻¹ · tan⁻¹The angle that has a given sine, cosine or tangentsin⁻¹(0.5) = 30
    hyp → sinh · cosh · tanhHyperbolic functions (no angle unit); 2nd gives their inversescosh(1) = 1.54308063482
    x² · x³ · xʸSquare, cube and any power2^10 = 1,024
    √x · ∛x · ˣ√ySquare root, cube root and any root (index first)4ˣ√81 = 3
    ln · eˣNatural logarithm (base e) and its inverseln(e^3) = 3
    log · 10ˣCommon logarithm (base 10) and its inverselog(1000) = 3
    logₐx · log₂Logarithm to any base, and base 2log_2(1024) = 10
    1/x · |x|Reciprocal (types ⁻¹) and absolute value8⁻¹ = 0.125
    x!Factorial; the gamma function for numbers that aren't whole6! = 720
    nCr · nPrCombinations and permutations of r items from n52 nCr 5 = 2,598,960
    modThe remainder after dividing17 mod 5 = 2
    %Percent: divide by 100, or a percentage of the number before + or −50+10% = 55
    EXPScientific notation: × 10 to a power6.022E23 = 6.022 × 10²³
    π · eThe constants pi (3.14159…) and e (2.71828…)2π = 6.28318530718

    How to use a scientific calculator: worked examples

    Type each calculation exactly as shown (in degree mode) to check your working. Brackets you leave open are closed for you, so √(3²+4² works too.

    Worked examples with the keys to press and the answers
    ProblemYou typeAnswer
    Hypotenuse of a right triangle with sides 3 and 4√(3²+4²)5
    The angle whose tangent is 3/4tan⁻¹(3÷4)36.8698976458°
    Height a 12 m ladder reaches when it leans at 35° to the groundsin(35)×126.88291723621 m
    $1,000 after 10 years at 5% a year, compounded yearly1000×(1+0.05)^101,628.89462678
    Area of a circle with a radius of 2.5π×2.5²19.6349540849
    Grams left of 100 g after 30 hours, if the half-life is 8 hours100×0.5^(30÷8)7.43254446877
    pH of a solution with 0.0001 mol/L of hydrogen ions−log(1E−4)4
    Ways to choose 6 lottery numbers out of 4949 nCr 613,983,816
    Meters light travels in a year (2.998 × 10⁸ m/s × 31,557,600 s)2.998E8×315576009.46096848 × 10¹⁵

    Order of operations on a scientific calculator

    The calculator follows the usual order, often remembered as PEMDAS or BODMAS: brackets, then exponents (powers and roots), then multiplication and division from left to right, then addition and subtraction. Two details trip people up, and the table shows both. A minus sign in front of a number is applied after its power, so −3² is −9. And a number written straight against a bracket, π or a function is multiplied before an ordinary × or ÷, the convention many school scientific calculators use, so 1 ÷ 2π means 1 ÷ (2π), as it would in a physics formula.

    Order of operations examples
    You typeAnswerWhy
    2+3×414× before +
    (2+3)×420brackets first
    2^3^2512powers from the right: 2⁹
    −3²−9the power before the minus
    (−3)²9bracket the negative to square it
    6÷2(1+2)1implied × first: 6 ÷ 6
    6÷2×(1+2)9written ×: left to right
    1÷2π0.1591549430921 ÷ (2π)

    The famous 6 ÷ 2(1 + 2) puzzle has two defensible answers because the written form is ambiguous; textbook PEMDAS gives 9 and implied multiplication gives 1. When it matters, add the × sign or a bracket and there is only one answer.

    Degrees, radians and gradians

    A full turn is 360 degrees, 2π radians or 400 gradians. Degrees are the everyday unit; radians are the natural unit in calculus, physics and programming (Excel's SIN and JavaScript's Math.sin both expect radians); gradians, which put 100 in a right angle, survive mainly in surveying. To convert, multiply degrees by π/180 to get radians, or radians by 180/π to get degrees. On this calculator, typing ° after a number converts it to whatever mode you're in, so 30° in RAD mode is 0.523598775598.

    Getting the mode wrong is the most common reason a trig answer looks wrong: sin(30) is 0.5 in degrees but −0.988031624093 in radians. These are the exact values of the angles that come up most:

    Sine, cosine and tangent of common angles
    DegreesRadianssincostan
    0°0010
    30°π/60.50.8660254037840.57735026919
    45°π/40.7071067811870.7071067811871
    60°π/30.8660254037840.51.73205080757
    90°π/210undefined

    The calculator knows these special angles exactly, so cos(90°) is 0 rather than 6.1 × 10⁻¹⁷, and tan(90°) is reported as undefined instead of a huge number.

    Logarithms: log, ln and any base

    A logarithm answers "what power gives this number?" The log key is base 10, so log(1000) = 3, and it is used for decibels, pH and the Richter scale. ln is the natural logarithm, base e, which appears in growth, decay and compound interest: ln(e³) = 3. For any other base use logₐx, which types log_ for you to add the base, as in log_2(1024) = 10. Behind it is the change-of-base rule, logb(x) = ln(x) ÷ ln(b), and the calculator returns exact answers where they exist, such as log4(2) = 0.5.

    Scientific notation, big numbers and precision

    To type a number like Avogadro's constant, 6.022 × 10²³, press EXP between the number and the power: 6.022E23. Answers switch to the same notation when they pass 10¹² (or 15 digits for whole numbers) or drop below 0.000001: 2^100 shows as 1.26765060023 × 10³⁰. The largest number a calculator like this can hold is about 1.8 × 10³⁰⁸, which is why 170! works and 171! reports an overflow.

    Most software stores numbers in binary floating point, where 0.1 has no exact form, so 0.1 + 0.2 comes out as 0.30000000000000004. This calculator keeps ordinary arithmetic as exact fractions instead: 0.1 + 0.2 = 0.3, 1 ÷ 3 × 3 = 1, and 0.1 + 0.2 − 0.3 = 0. A fractional answer also shows as a fraction under the result (7 ÷ 6 shows 7/6 and 1 1/6). Irrational answers such as √2 or sin(10°) use 64-bit floating point, good to about 15 significant digits, and are rounded to 12 on screen.

    Percentages, factorials and combinations

    • Percent. 15% is 0.15, so 200 × 15% = 30. After + or − it means a percentage of the number before it, as on handheld calculators: 50 + 10% = 55 and 80 − 25% = 60.
    • Factorial. n! multiplies every whole number from 1 to n: 6! = 720. 0! is 1. For other numbers it uses the gamma function, so 0.5! = 0.886226925453 (√π ÷ 2).
    • Combinations and permutations. nCr counts the ways to choose r items from n when order doesn't matter: the number of five-card poker hands is 52 nCr 5 = 2,598,960. nPr counts ordered arrangements: gold, silver and bronze among 8 runners can go 8 nPr 3 = 336 ways.
    • Modulo. 17 mod 5 = 2, the remainder. With a negative number the answer takes the sign of the divisor: −7 mod 3 = 2.

    Memory, Ans and history

    Ans holds your last answer; pressing an operator straight after = carries on from it, and pressing = again repeats a calculation that uses Ans (try Ans × 2). M+ and M− add the answer on screen to the memory or take it away, MR types the memory into your calculation and MC clears it. Every answer you keep with = goes into the history panel, newest first, with the angle mode noted beside trig calculations; tap one, or use the ↑ and ↓ keys, to bring it back. The last 50 are saved in your browser, on this device only.

    More calculators

    Adding fractions or mixed numbers by hand? The fraction calculator shows every step, from the common denominator to the simplified answer. Work out discounts, increases and reverse percentages with the percentage calculator, convert units such as inches to centimeters or pounds to kilograms with the unit converter, and switch numbers between binary, hex and decimal with the number base converter.

    Frequently Asked Questions

    How do I use this online scientific calculator?

    Tap the keys or type on your keyboard, the way the calculation is written: 2 + 3 × 4, sin(30), √2. The answer appears as you type; press = or Enter to keep it in the history. Functions such as sin( and log( open a bracket, and any brackets you leave open are closed for you. Tap the field to move the cursor and fix a typo anywhere, instead of starting again.

    How do I switch between degrees and radians?

    Use the DEG, RAD and GRAD buttons above the display. In degrees, sin(30) is 0.5; in radians the same keys give −0.988, because 30 radians is about 1,719°, so a wrong mode is the usual reason a trig answer looks wrong. The mode also sets the unit of sin⁻¹, cos⁻¹ and tan⁻¹ answers. To mark one angle as degrees whatever the mode, type ° after it (2nd, then x!): sin(30°) is 0.5 even in radians.

    How do I find sin⁻¹, cos⁻¹ and tan⁻¹, or hyperbolic functions?

    Press 2nd, then sin, cos or tan, for the inverse functions: sin⁻¹(0.5) = 30 in degree mode. Press hyp first for sinh, cosh and tanh, and hyp then 2nd for their inverses. The small labels above the keys show what 2nd will give, and both switch off again after one key. You can also type asin, acos, atan, sinh or asinh.

    How do I calculate a square root, cube root or any root?

    √x gives a square root (√(144) = 12) and 2nd then √x gives a cube root (∛(−27) = −3). For any other root, type the index, press 2nd then xʸ for ˣ√, then the number: 4 ˣ√ 81 = 3. You can also type root(81, 4), or use a fractional power: 81^(1/4) = 3. Odd roots of negative numbers work: (−8)^(1/3) = −2.

    What is the difference between log and ln?

    log is the common logarithm, base 10: log(1000) = 3, because 10³ = 1,000. ln is the natural logarithm, base e ≈ 2.71828: ln(e²) = 2. For another base use logₐx, which types log_ for you to add the base: log_2(8) = 3; 2nd then logₐx gives log₂ directly. Logarithms are only defined for numbers greater than 0.

    How do I type scientific notation like 6.02 × 10²³?

    Press EXP between the number and the power of ten: 6.02 EXP 23 shows as 6.02E23. A negative power works too: 1.5E−3 is 0.0015. Answers switch to scientific notation by themselves when they get very large or very small (from 10¹² up, below 0.000001, or whole numbers longer than 15 digits), shown as × 10ⁿ.

    How do I calculate a factorial, and why is 0! equal to 1?

    Type the number, then x!: 5! = 5 × 4 × 3 × 2 × 1 = 120. 0! is 1 by definition, because there is exactly one way to arrange nothing, and it keeps formulas such as nCr = n! ÷ (r!(n − r)!) working. For numbers that aren't whole, x! uses the gamma function: 0.5! = √π ÷ 2 ≈ 0.886227. 170! is the largest factorial a calculator can hold (about 7.26 × 10³⁰⁶).

    What do Ans, MC, MR, M+ and M− do?

    Ans is your last answer: press × straight after = and the calculator carries on with Ans ×. M+ adds the answer on screen to the memory and M− subtracts it (a typed calculation is worked out first), MR types the memory into the calculation, and MC clears it. While the memory holds anything, M = and its value show in the display. Memory, Ans and history stay on this device.

    How does the percent key work?

    On its own, % divides by 100: 15% is 0.15, so 200 × 15% = 30. After + or −, it means a percentage of the number before it, as on most handheld calculators: 50 + 10% = 55 and 80 − 25% = 60. For percentage change, reverse percentages and more, use the percentage calculator.

    What order of operations does the calculator follow?

    Brackets first, then powers and roots (worked from the right, so 2^3^2 = 512), then multiplication and division from left to right, then addition and subtraction. A number written straight against a bracket or a letter is multiplied first, as on many school scientific calculators: 6 ÷ 2(1 + 2) = 1 and 1 ÷ 2π = 1 ÷ (2π). Type the × sign, 6 ÷ 2 × (1 + 2), to get 9. −3² is −9; type (−3)² for 9.

    Why does 0.1 + 0.2 give exactly 0.3 here?

    Because the calculator keeps numbers as exact fractions whenever it can. Many apps and programming languages store numbers in binary, where 0.1 has no exact form, and show 0.1 + 0.2 = 0.30000000000000004. Here adding, subtracting, multiplying, dividing, whole-number powers and percentages stay exact (and a fractional answer also shows as a fraction, such as 1/3); irrational results like √2 or sin 10° use 64-bit floating point and are shown to 12 significant digits.

    Is my calculation history saved, and is it private?

    Your last 50 answers, the memory and the angle mode are saved in this browser's local storage, so they're still there next time on this device. Nothing is uploaded: every calculation runs in the page itself, and it keeps working without a connection once loaded. Tap Clear in the history panel to delete it.

    Advertisement