Math

Scientific Calculator

Live

Evaluate scientific expressions with trigonometric, logarithmic, root, power, factorial, and constant keys in radians or degrees.

About Scientific Calculator

Use a focused scientific keypad or keyboard to calculate expressions with sin, cos, tan, inverse trigonometry, square roots, absolute value, natural and base-10 logarithms, exponentials, powers, factorials, π, and e.

Set up Scientific Calculator

Workspace

Expression pad

Use the keypad for the active expression field, or type directly in the form.

Complete the fields to prepare a result.

Scientific expression with trig, logs, powers, and constants.

Choose whether angle values in the expression are degrees or radians.

Scientific Calculator: calculated value

Choose the values that apply, then calculate expression.

Calculation method

Tokenize and parse a restricted scientific expression grammar with precedence, domain checks, and configurable trigonometric angle units.

How it works

The page parses the expression with a restricted grammar rather than evaluating arbitrary JavaScript. Standard precedence applies, exponentiation is right-associative, and trigonometric input/output follows the selected degree or radian mode.

Practical guide

Evaluate scientific expressions with explicit angle mode, precedence, powers, roots, and logarithms.

Scientific Calculator worked example

The page’s example models checking a multi-step expression before using the result elsewhere. Change one assumption at a time so the effect on calculated value, expression and angle unit remains easy to explain.

Treat the displayed calculated value, expression and angle unit as the result of the example inputs, not as a default recommendation for a different situation.

Assumptions

  • The entered expression and angle unit describe the same scenario and use the units shown beside each field.
  • The calculation applies the stated method consistently and rounds only for display unless the tool says otherwise.

Limitations

  • The page parses the expression with a restricted grammar rather than evaluating arbitrary JavaScript. Standard precedence applies, exponentiation is right-associative, and trigonometric input/output follows the selected degree or radian mode.
  • The result covers the inputs exposed by this tool; omitted context can change a real-world answer.

Common mistakes

  • mixing degree and radian mode or omitting parentheses.
  • Changing expression without checking the other assumptions can make the comparison misleading.
When to use Scientific Calculator
Approach Best for Trade-off
Scientific Calculator A transparent calculation that reports calculated value, expression and angle unit. Accuracy depends on the entered assumptions and the documented method.
computer algebra software when symbolic simplification is required Situations that need different inputs, verification, or broader context. May take longer, cost more, or produce a result that is not directly comparable.

Examples

Sine of π/2 radians

Example input
{
    "expression": "sin(pi/2)",
    "angle_unit": "radians"
}
Expected result
{
    "result": 1,
    "expression": "sin(pi/2)",
    "angle_unit": "radians"
}

Sine of 30 degrees

Example input
{
    "expression": "sin(30)",
    "angle_unit": "degrees"
}
Expected result
{
    "result": 0.5,
    "expression": "sin(30)",
    "angle_unit": "degrees"
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Citations & sources

  1. ECMAScript Language Specification: Math Object

Frequently asked questions

Which functions are supported?

The parser supports sin, cos, tan, asin, acos, atan, sqrt, abs, ln, log, exp, powers with ^, factorial with !, parentheses, π as pi, and e.

When should I use DEG instead of RAD?

Use degrees when angles are expressed on a 0–360 scale, such as 30°. Use radians for values expressed with π or when a formula expects radians.

How are invalid domains handled?

The calculator rejects division by zero, square roots or logarithms outside their real-number domains, inverse trig inputs outside their domains, and factorials outside whole numbers 0–170.

Does it execute code from my expression?

No. It accepts only the documented numeric tokens, functions, constants, and operators and evaluates them with a purpose-built parser.