happytails.ai

Scientific calculator

A proper calculator for powers, roots and trigonometry.

The calculator supports real numbers, parentheses, factorials and postfix percentages. It uses floating-point arithmetic, rounds to 12 significant digits and rejects undefined results. It does not solve symbolic equations. Use explicit multiplication, parentheses and the functions listed below. Results update as you type. Up to 1,000,000 characters.

Your result

Report a problem or share an idea.

How to use Scientific calculator
  1. Enter expression in the input field.
  2. The result updates as you type. Adjust the available settings if needed.
  3. Review the result, then use Copy result or a download link when available.

Useful next steps

How Scientific calculator works

This scientific calculator evaluates an expression you type, using real numbers, parentheses, powers (^), factorials (!), postfix percent and the functions sin, cos, tan, asin, acos, atan, sqrt, log (base 10), ln, exp, abs, floor and ceil, plus the constants pi and e. It follows the usual order of operations, groups repeated powers from the right, and shows the answer as you type, rounded to 12 significant digits. Trigonometry starts in degrees, and you can switch to radians. Multiplication must be explicit, so 2pi is an error while 2*pi works.

Before you start

Check the angle unit before using trig functions, since sin(30) is 0.5 in degrees but about -0.988 in radians. Write every multiplication with * and close each parenthesis.

A worked example

Typing sqrt(144) + 2^3 returns 20, and sin(30) in degrees returns 0.5. In radians, asin(1) returns 1.57079632679, which is pi/2 rounded to 12 significant digits.

How to use it

Enter an expression, choose degrees or radians, and the answer updates as you type. Use the keypad or your keyboard. Multiplication must be explicit: write 2*pi, not 2pi.

A worked example

sqrt(144) + 2^3 = 20. In degrees, sin(30) = 0.5. Powers bind before unary minus, so -2^2 = -4.

What to know

The calculator supports real numbers, parentheses, factorials and postfix percentages. It uses floating-point arithmetic, rounds to 12 significant digits and rejects undefined results. It does not solve symbolic equations.

Common questions

Why does -2^2 give -4 instead of 4?

Powers are evaluated before the leading minus sign, so -2^2 means -(2^2), which is -4. This matches standard math notation. If you want the square of negative two, type (-2)^2, which returns 4.

How does the % sign work in this calculator?

Here % divides the number right before it by 100. So 200*15% returns 30, but 50+10% returns 50.1, because it adds 0.1 rather than 10% of 50. To add 10% to 50, type 50*1.1 or 50+50*10%, which both return 55.

Should I use degrees or radians?

Use degrees when your angles come from geometry, construction or everyday measurements, such as 30 or 45 degrees. Use radians for calculus and formulas written with pi, such as sin(pi/6). The setting also changes inverse functions: asin(1) returns 90 in degrees and 1.57079632679 in radians.

Why do I get an error for tan(90) or sqrt(-1)?

The calculator works with real numbers only and rejects results that are undefined or infinite. tan(90) in degrees, division by zero, the square root of a negative number and log(0) all show an error instead of a huge or complex value. Factorials also stop at 170!, and non-whole numbers such as 2.5! are rejected.

What is the difference between log and ln?

log is the base 10 logarithm, so log(1000) returns 3. ln is the natural logarithm with base e, so ln(e) returns 1. For any other base, divide two logs: log base 2 of 8 is ln(8)/ln(2), which is 3.