Scientific Calculator – Trig, Logarithms, Powers and Roots Online

Type a whole calculation, such as 2(3 + 4)² or 40 × tan(35), with the keypad or your keyboard, and the answer appears as you type.

Keyboard: digits, + − * / ^ ( ) ! %, Enter for =, Backspace to delete, Esc to clear.

History

No calculations yet.

    Press = to keep it. The calculator has sine, cosine and tangent with their inverses, hyperbolic functions, log and ln, powers and roots, factorials, percent, π and e, scientific notation (EXP), the last answer (Ans), a memory and a history of your recent results. Switch between degrees and radians with one tap. Nothing is sent anywhere: it all runs in your browser.

    How it works

    The calculator reads the whole expression and follows the usual order of operations: brackets first, then powers and roots, then multiplication and division, then addition and subtraction, working left to right within each level. So 2 + 3 × 4 = 14, not 20. Powers are worked from the right: 2^3^2 is 2^9 = 512. A minus sign in front of a number applies after the power, as in written math and on most scientific calculators: −3² = −(3²) = −9. Type (−3)² to square −3 and get 9. Spreadsheets such as Excel read =-3^2 as 9, which is why the two can disagree. A number written next to a bracket, π or a function is multiplied: 2π means 2 × π and 3(4 + 5) = 27. Brackets left open at the end are closed for you. In degree mode, sin, cos and tan take angles in degrees and the inverse functions answer in degrees; in radian mode both use radians. Exact angles give exact answers: sin(180°) = 0 and cos(90°) = 0, and tan(90°) is reported as undefined instead of a huge number. Results are rounded to 12 significant digits, which hides the tiny binary rounding errors of computer arithmetic, so 0.1 + 0.2 shows 0.3. Percent divides by 100, except after + or −, where it is a percentage of the number before it: 50 + 10% = 55. n! works for whole numbers from 0 to 170; above that the result is too large. Square roots and logarithms of negative numbers have no real value, and the calculator says so.

    Worked example

    How tall is a tree? Stand 40 feet from its base and measure the angle up to the top: 35°. In degree mode, type 40 × tan(35) and the calculator shows 28.0083015284, so the tree is about 28 feet tall. Order of operations: 2 + 3 × 4 gives 14, while (2 + 3) × 4 gives 20. And −3^2 gives −9. Degrees or radians matters: sin(π) is 0 in radian mode, but in degree mode the same keys give 0.0548036651488, the sine of 3.14 degrees. If a trig answer looks wrong, check the DEG/RAD switch first.

    Built and maintained by Miguel Marcos · Updated

    Frequently asked questions

    Does the calculator follow the order of operations?

    Yes. Brackets, then powers, then × and ÷, then + and −. 2 + 3 × 4 = 14. Use brackets when you mean something else: (2 + 3) × 4 = 20.

    Why is −3² equal to −9?

    The power is applied before the minus sign, the convention in algebra and on most scientific calculators. To square a negative number, put it in brackets: (−3)² = 9.

    How do I switch between degrees and radians?

    Tap DEG or RAD above the display. The choice applies to sin, cos, tan and their inverses, and it is kept in the page link.

    How do I type scientific notation?

    Press EXP (or type a capital E) between the number and the power of ten: 6.02E23 is 6.02 × 10²³ and 1.5E-3 is 0.0015. Very large and very small results are shown the same way.

    What do Ans, M+ and MR do?

    Ans is the last result you got with =. M+ adds the value on the display to the memory, M− subtracts it, MR puts the memory into the calculation and MC clears it. The memory and the history stay in this browser.

    Can I use my keyboard?

    Yes. Type numbers and + − * / ^ ( ) ! %, press Enter for = and Esc to clear. Function names such as sin, log or sqrt can be typed too.