Polish Notation Converter

Convert an arithmetic expression between infix, prefix (Polish), and postfix (reverse Polish) notation.

Result
—

How to calculate

Build an expression tree from the entered operator order. Prefix puts the operator before its arguments. Postfix puts it after them. Infix places operators between their arguments and displays explicit grouping.

Worked example

Use Input notation Infix · Output notation Prefix (Polish) · Expression (A + B) * C. The result is * + A B C.

Input and result notes

Use +, -, *, / and ^. Separate prefix or postfix tokens with spaces. Use neg for unary negation in those notations. In infix, exponentiation groups from the right.

Federal information processing dictionary

Related calculators