Scientific Calculator: Trig, Logs, Powers, Roots and Factorials
Type an expression or use the keys. Choose degrees or radians, use functions such as sin, ln and sqrt, constants such as pi and e, and ans for the last answer. Results are worked to 40 digits.
Last reviewed
Answer
24.5
Worked to 40 digits and shown to 15. Order of operations applies, and 200 + 10% means 200 plus 10% of 200. Type ans to use the last answer.
A scientific calculator that shows its working
This calculator does everything the basic calculator does and adds trigonometry, logarithms, roots, powers, factorials and the constants π and e. Type a whole expression such as sin(30) + sqrt(144) × 2, or build it with the keys. The answer shows as you go. Press = or Enter to keep it in the history, and use ans to use the last answer in the next line.
Functions and constants
| Key | What it does | Example |
|---|---|---|
| sin, cos, tan | sine, cosine, tangent | sin(30) = 0.5 (degrees) |
| asin, acos, atan | the inverse functions | asin(0.5) = 30 (degrees) |
| ln | natural logarithm, base e | ln(e) = 1 |
| log | logarithm, base 10 | log(1000) = 3 |
| exp | e to a power | exp(0) = 1 |
| √ (sqrt) | square root | sqrt(144) = 12 |
| ∛ (cbrt) | cube root | cbrt(27) = 3 |
| abs | size, ignoring sign | abs(−7.5) = 7.5 |
| xʸ (^) | a power | 2^10 = 1024 |
| x! | factorial | 10! = 3,628,800 |
| π, e | the constants | see below |
| ans | the last answer | ans × 2 |
Brackets are needed after a function, as in sin(30). A number straight before a function or constant is multiplied: 2π is 2 × π.
The constants to 30 digits
- π = 3.14159265358979323846264338328
- e = 2.71828182845904523536028747135
- √2 = 1.41421356237309504880168872421
- √3 = 1.73205080756887729352744634151
- ln 10 = 2.30258509299404568401799145468
The calculator holds the working to 40 digits and rounds the answer to 30 significant digits, and the screen shows 15 with the full value underneath.
Degrees and radians
Angles can be measured in degrees or radians, and the setting matters for every trigonometric function.
- A full turn is 360 degrees or 2π radians, so 180° = π radians.
- To convert degrees to radians, multiply by π ÷ 180, which is 0.0174532925199432957692369076849.
- To convert radians to degrees, multiply by 180 ÷ π, which is 57.2957795130823208767981548141, so one radian is about 57.3 degrees.
The same angle gives the same answer in either mode. sin(30) in degree mode is 0.5, and sin(pi/6) in radian mode is also 0.5, because 30° is π/6 radians. A frequent mistake is to leave the calculator in the wrong mode.
Exact at the quarter turns
In degree mode, sine and cosine are exact at multiples of 90 degrees: sin(180) is exactly 0, cos(90) is exactly 0, sin(270) is exactly −1. Many calculators show a tiny leftover such as 1.2246 × 10⁻¹⁶ for sin(180) in radian arithmetic, because π cannot be written exactly. Here very small trigonometric results, below 10⁻²⁸, are shown as zero, since they can only be rounding.
Some familiar values
| Angle | sin | cos | tan |
|---|---|---|---|
| 30° | 0.5 | 0.866025403784438646763723170753 | 0.577350269189625764509148780502 |
| 45° | 0.707106781186547524400844362105 | 0.707106781186547524400844362105 | 1 |
| 60° | 0.866025403784438646763723170753 | 0.5 | 1.73205080756887729352744634151 |
| 90° | 1 | 0 | undefined |
These are √3 ÷ 2, √2 ÷ 2 and 1 ÷ 2 written out. A useful check is that sin² + cos² is always 1 for the same angle.
Logarithms
A logarithm answers “what power gives this number?”. log(1000) = 3 because 10³ = 1000, and ln(e) = 1 because e¹ = e. For other bases, divide: the base-2 logarithm of 8 is ln(8) ÷ ln(2) = 3. Logarithms are only defined for numbers above zero, and the calculator says so for 0 and negative numbers.
Powers, roots and factorials
- Powers go right to left: 2^3^2 is 2^9 = 512. A negative number to a whole power is fine, and to a fraction it has no real value, which is reported.
- Roots. sqrt(144) = 12, and the cube root cbrt(27) = 3. A negative number has no real square root. A root is also a power, since 9^0.5 is 3.
- Factorials multiply a whole number by every whole number below it: 5! = 5 × 4 × 3 × 2 × 1 = 120, and 0! = 1. 10! is 3,628,800 and 20! is 2,432,902,008,176,640,000. They are worked out exactly up to 1000!.
A worked example
A ladder 5 metres long leans against a wall at 70° to the ground. How high does it reach, and how far is its foot from the wall?
- The height is the opposite side of the angle: 5 × sin(70) = 4.69846310392954192027054638662 m, or about 4.70 m.
- The distance from the wall is the adjacent side: 5 × cos(70) = 1.71010071662834366522049807341 m, or about 1.71 m.
The other way round, a slope that rises 3 for every 4 along has an angle of atan(3 ÷ 4) = 36.8698976458440212968556125591°, about 36.87°, and the sloping side is sqrt(3² + 4²) = 5. Try each in the calculator and check the line against the answer.
Errors
The calculator reports an error and says why instead of showing a meaningless number: dividing by zero, a square root or logarithm of a number it is not defined for, the tangent of 90°, an inverse sine or cosine outside −1 to 1, a factorial of a negative number or a fraction, and a bracket that is not closed.
For percentages use the percentage calculator, for exact fractions the fraction calculator, and for very large numbers the big number calculator. For the mean, spread and quartiles of a list, there is the statistics calculator.
How it is calculated
The expression is read by a parser, not run as code. It follows the usual order: brackets, powers (right to left), multiplication and division, then addition and subtraction, and a leading minus applies after a power, so −2^2 is −4. Trigonometric functions convert degrees to radians with π to 40 digits, except at exact multiples of 90°. Results are rounded to 30 significant digits.
Frequently asked questions
Is it in degrees or radians?
You choose. The default is degrees, so sin(30) is 0.5. Switch to radians and sin(pi/6) is 0.5. A full turn is 360 degrees or 2π radians, and 180° = π radians.
How accurate is it?
The arithmetic runs at 40 digits and answers are rounded to 30 significant digits, shown to 15. In degree mode, sin and cos of multiples of 90 degrees are exact, so sin(180) is 0 and not a tiny leftover.
What functions are available?
sin, cos, tan, asin, acos, atan, ln (natural log), log (base 10), exp, sqrt, cbrt, abs, powers with ^, factorials with !, the constants pi and e, and ans for the last answer.
What is the difference between ln and log?
ln is the natural logarithm, to base e: ln(e) is 1. log is to base 10: log(1000) is 3. To get a logarithm to another base, divide: log base 2 of 8 is ln(8) ÷ ln(2) = 3.
What is the largest factorial?
The calculator works out factorials of whole numbers up to 1000. 10! is 3,628,800 and 20! is 2,432,902,008,176,640,000. Factorials of negative numbers or fractions are not defined here.
Why does tan(90) give an error?
Because the tangent of 90 degrees is undefined, since it is sin ÷ cos and the cosine is zero. The calculator says so instead of showing a huge number.
Related calculators
- Basic CalculatorType a calculation or use the keys.
- Percentage CalculatorPick the question you are actually asking.
- Fraction CalculatorEnter two fractions, mixed numbers, whole numbers or decimals and choose an operation.
- Big Number CalculatorEnter whole numbers of any size, up to 10,000 digits, and choose an operation.
- Statistics CalculatorEnter your numbers, separated by commas, spaces or new lines.
- Number Sequence CalculatorChoose the type of sequence, give the first term and the rule, and say how many terms.