HP 12C RPN Financial Calculator

Faithful in-browser clone of the classic Hewlett-Packard 12C (1981). Full RPN stack, TVM, NPV/IRR, amortization, and 2-variable statistics. Built for users who already know Reverse Polish Notation.

⚠ This is an RPN calculator. Enter numbers first, then the operator — for example 3 ENTER 4 + gives 7. It faithfully emulates the HP 12C and is designed for finance professionals, CFA/FRM candidates, and RPN veterans.
New to RPN? Try the HP 19BII+ instead — algebraic by default, menu-driven, with the same TVM / NPV / Bond features. Or use a single-purpose form: Compound Interest · Loan · Mortgage · Bond YTM
finMATH 12C
FINANCIAL CALCULATOR
0.00
f g BEGIN STAT
T:0.0000
Z:0.0000
Y:0.0000
X:0.0000
LSTx:0.0000
Mode:END · FIX 2
TVM: n=0, i=0, PV=0, PMT=0, FV=0. No cash flows. No statistics data.
Stack persists during this session; starts fresh when you reload.

Tip: Use Reset All to start fresh. On the keypad, the built-in HP 12C equivalents are CLx (clears display), f CLx (yellow "REG" — clears everything), and f x⇌y (yellow "FIN" — clears financial registers only).

Keyboard: 0-9 digits · . decimal · Enter ENTER · + − * / math · Backspace delete/CLx · Esc cancel prefix · F f-shift (yellow) · G g-shift (blue) · N I P M V = n, i, PV, PMT, FV · C = CHS · S R = STO, RCL · X = x⇌y

Why the HP 12C still matters

The Hewlett-Packard 12C went on sale in September 1981 and is, astonishingly, still in production — the longest continuous run of any calculator model. Generations of bankers, appraisers, CFA candidates, and real-estate brokers learned finance on its keyboard. Its mystique comes from three things: RPN input that rewards fluency, a compact layout that puts time-value-of-money, cash-flow, and bond functions on the first row, and a metal bezel that survives being dropped onto a trading-floor concrete slab.

What this web clone covers

The calculator implements the arithmetic core, the 4-register stack (X, Y, Z, T) with automatic stack lift on ENTER, LSTx recall, twenty storage registers (STO 0-9 plus STO .0-.9), the full TVM solver for n / i / PV / PMT / FV using a bracketed Newton iteration on i, NPV and IRR on up to 80 cash-flow entries with grouped Nⱼ counts, amortization (interest, principal, and balance over a range of payments), 2-variable statistics (mean, sample standard deviation, n, Σx, Σy), and the usual percentage, roots, logs, and integer/fractional parts. BEG/END annuity modes and FIX decimal display work exactly as on hardware.

Reading HP 12C keystroke notation (f and g)

Before the example, a note on notation. The HP 12C has two shift keys — the yellow "f" and the blue "g" — that unlock the small gold and blue labels printed above and below each main key. Writing g END in a keystroke sequence means: press the blue g shift first, then press the key whose blue label reads END. On this clone (and on the hardware) that key is the digit 8; the key labelled BEG is the digit 7. Similarly, f AMORT means: press the yellow f shift, then the n key (whose yellow label reads AMORT). Once you learn the colour coding, the entire financial library fits on a 4-row keypad.

A quick worked example: mortgage payment

Imagine a 30-year mortgage for $300,000 at 6.50% annual interest. In HP 12C keystrokes:

  • 30 ENTER 12 × n — 360 months into the n register
  • 6.5 ENTER 12 ÷ i — monthly rate into i
  • 300000 PV — principal (entered positive since the lender's view is an outflow to you; the HP 12C expects one of PV/PMT/FV to be negative)
  • 0 FV — loan is fully amortized
  • g END — press the blue g shift, then 8 (the key whose blue label reads END) to select end-of-month payments
  • PMT → returns −1,896.20 (your outflow per month)

Then 1 f AMORT (press 1, then the yellow f shift, then the n key whose yellow label reads AMORT) breaks down the first month into interest and principal. Continue the sequence to see every year of the loan.

About RPN

Reverse Polish Notation looks strange if you grew up on (3 + 4) × 5 =. In RPN you type operands first and then the operator: 3 ENTER 4 + 5 ×. Parentheses disappear, and your eyes stay on the stack instead of jumping back through an expression. Most HP 12C users report that after a few hours of practice they would rather not go back.