Math expression calculator

Evaluate nested arithmetic and elementary functions locally, with parentheses and standard precedence.

Enter values

Start with the example below, or enter your own values.

How it works

Supports x, pi, e, sin, cos, tan, exp, ln, log (base 10), sqrt and abs. Angles are radians. Use explicit multiplication for ambiguous expressions such as 1/(2x). Floating-point real evaluation only.

Try an example

Expression: 2*(3+4)+sin(pi/2); Value of x: 0. The form starts with these values; change them to explore your own case.

Example result: 15

  1. Parse with standard operator precedence: ((2 * (3 + 4)) + sin((pi / 2))).
  2. Evaluate at x = 0 (angles in radians).

Learn more in Functions, logarithms and trigonometry.

Results are calculated locally. Floating-point tools provide numerical approximations, not formal proof certificates.