RPN Calculator (Reverse Polish Notation)

Online RPN calculator in the style of HP calculators: enter numbers and operators in postfix order (3 4 + 2 ×) and see the stack…

Results

Enter your details and click Calculate to see your results.
About This Calculator

Type numbers and operators separated by spaces. Operators: + − * / ^ %, and sqrt, sq, inv (1/x), chs (change sign), sin/cos/tan (degrees), ln, log, swap, dup, pi, e. Each operator uses the number(s) on top of the stack.

Example

Example: 3 4 + 2 * 5 sqrt − = (3 + 4) × 2 − √5 = 11.7639320225.

Assumptions

Trig in degrees. Division by zero gives infinity.

Frequently Asked Questions

Why use RPN?

There are no brackets — every operation acts immediately on the stack, which is faster for long chains once you're used to it (HP 12C, HP 35s).

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile