Scientific Calculator
Pick a function, enter x (and the exponent y for a power), and set the angle unit to degrees or radians for trigonometry. The calculator works out one function at a time and shows up to 12 decimal places, switching to scientific notation for very large or small answers.
Last updated by Ultra Calculator
Scientific Calculator
How to calculate it
sin(x), cos(x), tan(x): with degrees, x is first converted to x × π ÷ 180 radians arcsin(x), arccos(x), arctan(x): with degrees, the answer is converted by × 180 ÷ π log₁₀(x) = the power of 10 that gives x; ln(x) = the power of e that gives x e^x, x^y, √x n! = 1 × 2 × 3 × ... × n |x| = x if x ≥ 0, otherwise -x
- x
- the value you enter (the angle, for sin, cos and tan)
- y
- the exponent, used only for x^y
- n
- a whole number of 0 or more, for the factorial
- π
- pi, about 3.14159
- e
- Euler's number, about 2.71828
arcsin and arccos need x between -1 and 1, log and ln need x above 0, and √x needs x of 0 or more.
Worked example
Sine of 30 degrees
sin(30°) = 0.5. With the angle unit set to degrees, 30 is converted to π/6 radians before the sine is taken.
| Function | sin(x) |
|---|---|
| Value (x) | 30 |
| Angle unit | Degrees |
| Result | 0.5 |
|---|---|
| Function | sin(x) |
| Value entered | 30 |
How to use this calculator
- Choose the Function, for example sin(x), ln(x) or n!.
- Enter Value (x). For n!, use a whole number from 0 to 170.
- For x^y, also enter the Exponent (y), which appears when you choose that function. It can be 0, negative or a decimal.
- For sin, cos, tan and their inverses, set the Angle unit to degrees or radians. Leave it blank for radians.
- Read the Result. Very large or very small answers appear in scientific notation, such as 7.25741561531 × 10^306 for 170!. If x is outside the function's range, a message explains why instead.
Frequently asked questions
Should I use degrees or radians?
Use the unit your question or formula uses. Everyday angles are usually in degrees, such as a 30° slope or a 90° corner. Use radians in calculus, physics formulas and anything involving π, where a full turn is 2π. The same input gives very different answers: sin(30) is 0.5 in degrees but about -0.988 in radians.
What is the difference between log and ln?
log₁₀ is the common logarithm, base 10, so log₁₀(1000) = 3. ln is the natural logarithm, base e, so ln(e) = 1. You can convert between them with ln(x) ≈ log₁₀(x) × 2.302585.
Why is tan(90°) undefined?
tan(x) is sin(x) ÷ cos(x), and cos(90°) is 0, so there is nothing to divide by. The same happens at 270°, -90° and every other odd multiple of 90° (π/2 radians). A computer can't store π/2 exactly, so the calculator treats any angle within 10^-12 radians of one of these as undefined, rather than showing a huge number such as 1.633 × 10^16.
What is the largest factorial it can work out?
170!, which is about 7.26 × 10^306. 171! is bigger than about 1.8 × 10^308, the largest number the calculator can hold, so it shows a message instead. The same ceiling applies to e^x, which works up to x = 709.78 or so, and to x^y.
Can I type a whole expression such as 2 + 3 × 4?
No. This calculator applies one function to one number at a time. For a longer calculation, work it out step by step and use each result as the next input.
Learn more
Degrees and radians
Both measure angles. A full turn is 360° or 2π radians, so 1 radian is about 57.3°. To convert degrees to radians multiply by π ÷ 180, which is what the calculator does when you choose degrees.
Inverse trigonometric functions
arcsin, arccos and arctan work backwards from a ratio to an angle. Many angles share the same sine, so each returns one standard answer: arcsin gives an angle from -90° to 90°, arccos from 0° to 180°, and arctan strictly between -90° and 90°.
Where each function is defined
Some inputs have no real answer. Logs need x above 0, square roots need x of 0 or more, arcsin and arccos need x between -1 and 1, and factorials need a whole number. tan(x) is undefined at 90°, 270° and every odd multiple of 90°. The calculator shows a message instead of a number for anything outside these ranges.
- Resolving a force into horizontal and vertical parts with cos and sin in physics homework
- Finding the angle of a ramp from its gradient with arctan: a rise of 1 in 12 is arctan(1/12), about 4.76°
- Working out pH from a hydrogen ion concentration with log₁₀: 0.001 mol/L gives -3, so the pH is 3
- Counting arrangements with n!: 5 people can stand in a line in 5! = 120 ways
- Modelling exponential growth or decay with e^x
Leaving the angle unit on radians for an angle in degrees
sin(30) in radians is about -0.988, not 0.5. If an answer looks wrong for an angle, check the angle unit first.
Mixing up log and ln
log₁₀(100) is 2 but ln(100) is about 4.605. Use log₁₀ for pH, decibels and powers of 10, and ln for growth, decay and calculus.
Entering a value outside the function's range
arcsin(2), ln(-5) and √-9 have no real answer. The calculator shows an error rather than a number, so check the input.
Expecting the inverse to return any matching angle
arcsin(0.5) returns 30°, although 150° has the same sine. Use the symmetry of the graph to find the other solutions in the range you need.
Methodology and sources
Each function uses JavaScript's built-in maths in double-precision floating point (about 15 to 17 significant digits). In degrees, sin, cos and tan reduce x exactly to within 45° of a multiple of 90° before converting to radians, so sin(180°) is exactly 0; arcsin, arccos and arctan convert their answer back. A blank angle unit means radians. Trigonometry results are rounded to 12 decimal places. Other results keep 12 decimal places, or 12 significant figures below 1, so a tiny answer such as e^-30 isn't lost. Answers of 10^15 or more, or below 0.000001, appear in scientific notation. The largest number the calculator holds is about 1.8 × 10^308: 170! and e^709 work, 171! and e^710 don't. tan(x) counts as undefined within 10^-12 radians of an odd multiple of 90°, and 0^0 is given as 1, the usual convention.