Scientific Calculator

Use a decimal point, *, /, ^, pi and function parentheses. Write multiplication explicitly: 2*pi. Scientific notation such as 1e-3 is supported.

Result

Enter an expression to calculate.

Degrees

Displayed to 12 significant digits. No inferred physical unit.

Evaluation order

Enter an expression to calculate.

Parentheses → powers → multiplication and division → addition and subtraction. A leading minus follows powers: -2^2 = -4.

Show the steps
    Supported functions
    Constants: pi, e
    Binary approximations of the circle constant and the base of natural logarithms.
    sqrt(x)
    Nonnegative square root; x must be 0 or greater.
    cbrt(x), abs(x)
    Cube root and absolute value; any supported real input, including negative cube roots.
    ln(x), log10(x), log2(x)
    Logarithms with base e, 10 and 2; x must be positive.
    exp(x)
    e raised to x; the result must remain within the supported magnitude.
    sin(x), cos(x), tan(x)
    Inputs use the selected angle mode, at most 1,000,000 radians in magnitude (about 57,295,779.5 degrees). Tangent excludes the neighborhood where the absolute cosine is at most 1e-12.
    asin(x), acos(x)
    x must be from -1 to 1. Principal results use the selected mode: asin from -90° to 90° (-pi/2 to pi/2); acos from 0° to 180° (0 to pi).
    atan(x)
    Any supported real input. Principal result between -90° and 90° (-pi/2 and pi/2), in the selected mode.
    sinh(x), cosh(x), tanh(x)
    Hyperbolic functions of a dimensionless real input; unaffected by angle mode. Result magnitude limits apply.
    hypot(a,b)
    Two real arguments; stable hypotenuse without first squaring large inputs.

    Real numbers only. Nonzero literals and intermediate results must have magnitude from 1e-300 to 1e300. Use at most 256 characters, 128 tokens and 32 nesting levels. No implicit multiplication, factorial, percent, variables or complex numbers. A negative base needs a safe integer exponent. Zero to a nonpositive power is excluded.

    Enable JavaScript to calculate. Instructions and formulas remain available below.

    Evaluate real-number expressions with powers, roots, logarithms and trigonometric functions, and see the calculation order.

    How to use

    Enter an expression using a decimal point, +, -, *, /, ^ and parentheses. Write multiplication explicitly: 2*pi, not 2pi. Scientific notation such as 1e-3 is supported.

    Choose Degrees or Radians before using trigonometric functions. This mode also controls the angles returned by asin, acos and atan; it does not change hyperbolic functions.

    Press Calculate or Enter to get the result. The Evaluation order diagram shows the last operations; open Show the steps for the complete calculation. Editing the expression or angle mode clears the old answer.

    Copy result includes the expression and angle mode. Reset clears the expression and restores the starting angle mode. Supported functions lists the accepted names and their domains.

    This is a real-number calculator with finite-precision arithmetic. It displays up to 12 significant digits and supports nonzero intermediate magnitudes from 1e-300 to 1e300. It does not track physical units or measurement uncertainty.

    Science

    Parentheses set grouping. Powers are evaluated before a leading minus sign, so -2^2 is -4, while (-2)^2 is 4. Multiplication and division precede addition and subtraction; powers group from the right.

    The constants pi and e approximate the circle constant and the base of natural logarithms. ln uses base e, log10 uses base 10, and log2 uses base 2. A real logarithm requires a positive input.

    Sine, cosine and tangent relate an angle to ratios. A half turn is pi radians or 180 degrees. Inverse trigonometric functions return a single principal angle rather than every possible angle.

    sqrt gives the nonnegative square root. Use cbrt for a negative cube root: cbrt(-8) is -2. A negative base raised to a noninteger power is excluded from this calculator, even when a different algebraic formulation could have a real answer.

    Binary floating-point arithmetic can leave small residuals, such as sin(pi) in radian mode being close to zero rather than exactly zero. Display rounding changes presentation, not the stored intermediate values or the precision of a measurement.

    Formulas

    Degrees to radians: radians = degrees × pi / 180

    Base-10 logarithm: log10(x) = ln(x) / ln(10), x > 0

    Hypotenuse: hypot(a,b) = sqrt(a² + b²)

    Power grouping: a^b^c = a^(b^c)

    Examples

    2+3*4: 14. Multiply 3 by 4, then add 2.

    sin(30), Degrees: 0.5. Select Degrees; the same numeric angle in Radians is different.

    1/(2*pi*1000*1e-6): 159.154943092. An RC-formula arithmetic example. Supply quantities in compatible units yourself; this calculator does not infer units.

    hypot(3,4): 5. The hypotenuse function combines two perpendicular components.

    -2^2 and (-2)^2: -4 and 4. Parentheses change whether the negative sign belongs to the squared base.

    sqrt(-1): No supported real result. Complex values are outside this calculator’s scope.

    References

    NIST DLMF: logarithms, exponentials and powers

    NIST DLMF: inverse trigonometric functions and principal values