🇬🇧 🇫🇷

RPN Calculator

A free and simple Reverse Polish Notation calculator.

Contents
  1. What is RPN?
  2. Reading the display
  3. Key reference
  4. Worked examples
  5. Desktop window (Windows)

What is RPN?

In Reverse Polish Notation you enter the operands first and the operator last. Instead of writing 3 + 4 =, you type 3, push it with ENTER, type 4, then press +. The result appears immediately.

Numbers live on a stack. Pressing ENTER pushes the number you just typed onto the stack. An operator such as + takes the top two numbers, combines them, and puts the single result back. This is why no parentheses are ever needed: you control the order yourself.

The bottom line is "X"

The lowest line of the display is the working register, called X. It always shows a value — 0 when nothing has been typed yet.

Reading the display

The screen shows several stack lines at once, oldest at the top and the working value (X) at the bottom, drawn larger. The line above X is Y, then Z, and so on.

While you are typing a number it appears on the bottom line. As soon as you press ENTER or an operator, the value is committed to the stack and the lines shift up.

Key reference

KeyWhat it does
09Type the digits of a number.
·Decimal point.
±Flip the sign of the value on the X line.
+ × ÷ Combine Y and X (Y is the first operand) and leave the result in X.
ENTERPush the typed value onto the stack; the input line resets to 0.
SWAPExchange the X and Y values.
DROPRemove the X value from the stack (the lines shift down).
CClear only the current (X) line, setting it back to 0.
CLEARClear the entire stack.
Backspace: erase the last digit. When nothing is left it shows 0 rather than dropping a stack value.
Order matters for − and ÷

Subtraction and division use Y first: 10 ENTER 3 − gives 7 (Y − X), and 8 ENTER 2 ÷ gives 4 (Y ÷ X).

Worked examples

GoalKeysResult
Add 3 and 43 ENTER 4 +7
10 minus 31 0 ENTER 3 7
8 divided by 28 ENTER 2 ÷4
Make 5 negative5 ±-5
(2 + 3) × 42 ENTER 3 + 4 ×20

Notice how (2 + 3) × 4 needs no parentheses: you compute the sum first, then multiply — exactly the order you press the keys.

Desktop window (Windows)

On Windows the calculator runs as a frameless, transparent window shaped to the rounded body — there is no title bar.