Skip to content

Expression Calculator

Evaluate mathematical expressions with variables, functions, units, complex numbers, and matrices using our free expression calculator.

This expression calculator is commonly used by programmers, engineers, students, and scientists for evaluating complex mathematical expressions, testing formulas, and performing advanced calculations with custom variables.

  • Basic Arithmetic: +, -, *, /, ^, %, factorial
  • Functions: sqrt, sin, cos, tan, log, abs, round, and more
  • Variables: Define and use custom variables (x = 10)
  • Constants: pi, e, tau, phi
  • Complex Numbers: 2 + 3i calculations
  • Units: Convert between units (5 cm + 2 inch)
  • Matrices: Vector and matrix operations
  • 2 + 3 = 5
  • sqrt(16) = 4
  • sin(pi / 2) = 1
  • x = 10; y = 5; x + y = 15
  • 2 + 3i (complex number)
  • 5 cm + 2 inch = 10.08 cm
  • [1, 2, 3] (vector)

Forgetting Parentheses: Use parentheses for clarity. 2^3+1 gives 9, but 2^(3+1) gives 16. Always group operations explicitly.

Case Sensitivity: Function names and constants are case-sensitive. Use sin, not SIN. Use pi, not PI.

Variable Scope: Variables persist in the current session. Clear the calculator or use new variable names to avoid conflicts.

Unit Mixing: When using units, ensure compatibility. You can’t add meters to seconds, only like units can be combined.

What mathematical functions are supported?

Section titled “What mathematical functions are supported?”

The calculator supports trigonometric (sin, cos, tan), logarithmic (log, ln), roots (sqrt, cbrt), rounding, absolute values, and many more advanced functions.

Yes, define variables like x = 10, then use them in expressions. Variables persist during your session.

Yes, use i for the imaginary unit. Example: (1 + 2i) * (3 - i) = 5 + 5i.

Yes, the calculator supports unit conversions. Example: 90 km/h to m/s converts speed units automatically.

What’s the difference from other calculators?

Section titled “What’s the difference from other calculators?”

This expression calculator evaluates full mathematical expressions with variables, functions, and units - not just simple arithmetic like basic calculators.