Online scientific calculator
Trigonometry, logarithms, exponentials and factorials, with a degrees/radians switch.
Calculator inputs
Results
Enter your values and press “Calculate” to see the result.
In short
- What it calculates
- Trigonometry, logarithms, exponentials and factorials, with a degrees/radians switch.
- Formula used
Available functions:- Example
- Example 1: Expression: sin(pi/4) + ln(10)
Scientific calculator
Built for high school, university and technical work: on top of basic arithmetic it offers direct and inverse trigonometric functions, hyperbolics, logarithms in several bases and factorials.
The angle unit selector prevents the classic mistake of computing sin(30) in radians when you meant degrees.
How it works
The parser is the same one used by the basic calculator, extended with the full function catalogue. When you pick degrees, the arguments of sin, cos and tan are converted to radians before evaluation, and asin, acos and atan return degrees.
Results are shown to eight decimal places so small differences remain visible.
Formula
Available functions:
- Trigonometric: sin, cos, tan, asin, acos, atan
- Hyperbolic: sinh, cosh, tanh
- Logarithms: ln (natural), log and log10 (base 10), log2 (base 2)
- Exponential: exp(x) = e^x
- Roots: sqrt(x), cbrt(x)
- Others: abs, sign, round, floor, ceil, trunc, fact, deg, rad
- Constants: pi, e, tau
Worked example
Example 1: Expression: sin(pi/4) + ln(10)
1. sin(pi/4) = 0.70710678
2. ln(10) = 2.30258509
3. Sum = 3.00969187
Result: 3.00969187
Example 2: Expression: sqrt(3^2 + 4^2) + cos(60), with angles in degrees
1. 3^2 + 4^2 = 9 + 16 = 25
2. sqrt(25) = 5
3. cos(60°) = 0.5
4. Sum: 5 + 0.5 = 5.5
Result: 5.5 (in radians, cos(60) would be −0.952413 and the total 4.047587)
Explanation
Degrees or radians, the silent error
It is the commonest fault and the hardest to spot, because the calculator does not complain: it simply returns the wrong number. The sine of thirty is 0.5 in degrees and minus 0.988 in radians. Before any trigonometric calculation, check which mode the indicator shows.
Logarithms in any base
Most calculators only carry the common and natural logarithm, but any other base comes from a quotient: the log base b of x is the log of x divided by the log of b, using either the common or natural log. It is the change of base formula, and it always works.
Inverse functions return a single value
The arcsine of 0.5 returns thirty degrees, but a hundred and fifty has the same sine. Inverse functions are restricted to a principal range in order to be functions at all. In geometry or physics problems, check whether the other solution is also valid in context.
Precision and scientific notation
Very large or very small results display in scientific notation because they do not fit the screen. The calculator works in double precision floating point, giving about fifteen or sixteen reliable significant figures; beyond that, the decimals you see are noise.
Frequently asked questions
How do I switch between degrees and radians?
Use the “Angle unit” selector. It affects direct and inverse trigonometric functions only.
Can I compute logarithms in any base?
Yes, using the change of base identity: log base 7 of 100 is written ln(100)/ln(7).
How is this different from the basic online calculator?
The engine is the same, but this page is designed for expressions with functions and shows more decimals.
Why is my sine giving a strange result?
Almost always because the calculator is in radians when you expected degrees, or the reverse. The sine of thirty is 0.5 in degrees and quite different in radians.
How do I calculate a base 2 logarithm?
Divide the log of your number by the log of 2, using either the common or natural logarithm. It is the change of base formula.
How do I take a square or cube root?
Use sqrt(x) for a square root and a fractional power for the rest: the cube root of 27 is typed 27^(1/3) and gives 3.
How precise are the results?
Calculations use double-precision floating point, about 15 to 16 significant digits. That is why 0.30000000000000004 sometimes appears instead of 0.3: it is binary rounding, not a formula error.
Sources and references
The formula behind this calculator is not ours. These are the sources it comes from, in APA 7 format, in case you want to go to the original or cite them in your own work.
- Olver, F. W. J., et al. (Eds.). NIST Digital Library of Mathematical Functions, §4.2 Logarithm, Exponential, Powers: Definitions. National Institute of Standards and Technology. https://dlmf.nist.gov/4.2 https://dlmf.nist.gov/4.2 Definitions of logarithm, exponential and power used by the calculator.
- Olver, F. W. J., et al. (Eds.). NIST Digital Library of Mathematical Functions, §4.14 Trigonometric Functions: Definitions and Periodicity. National Institute of Standards and Technology. https://dlmf.nist.gov/4.14 https://dlmf.nist.gov/4.14 Definition of the trigonometric functions and their periodicity (in radians).
Need to calculate something else?
These tools are often used alongside this calculator.
Calculator
Type the whole expression and get the result instantly, brackets and functions included.
Logarithms
Compute the logarithm in any base and read ln, log₁₀ and log₂ at the same time.
Powers
Raise any number to an integer, decimal or negative exponent.
Roots
Calculate roots of any index, including negative numbers with an odd index.
Derivatives
Differentiate functions symbolically and evaluate the derivative at a given point.
Percentage
The four most common percentage calculations in a single tool.