Polish Notation Converter - Infix, Prefix, and Postfix

Your details

Choose the notation your expression is already written in.
Use + - * / ^ and parentheses. Operands can be numbers or single letters (A-Z).
Infix
( A + B ) * C

Familiar left-to-right form with parentheses where needed

Prefix (Polish)* + A B C
Postfix (RPN)A B + C *
Numeric resultVariables present - enter numbers to evaluate

Converted "(A + B) * C" to all three notations.

  • Prefix form: "* + A B C" - operator first, no parentheses needed because arity is always two.
  • Postfix / RPN form: "A B + C *" - operator last, evaluated left-to-right with a simple stack.
  • Prefix and postfix forms are unambiguous without parentheses because operator precedence is encoded in position.

Next stepPostfix (RPN) is used by most scientific calculators and compilers. Prefix (Polish) is common in Lisp-family languages and expression trees.

= Powered by OnlyCalculators