NPV and IRR on the HP 12C
The HP 12C financial calculator (including Platinum versions) has built-in functions for calculating Net Present Value (NPV) and Internal Rate of Return (IRR) based on a series of cash flows. These are useful for investment analysis:
- NPV: Discounts future cash flows to the present using a specified interest rate (i). A positive NPV indicates a profitable investment at that rate.
- IRR: The discount rate that makes NPV equal to zero. If IRR exceeds your required rate of return, the investment is attractive.
Cash flows are entered sequentially, with the initial investment (outflow) as CF₀ (typically negative). Subsequent inflows/outflows are CF₁, CF₂, etc. The calculator supports up to 20 unique cash flows (plus CF₀) and handles grouped (repeated) flows with Nⱼ.
Key Notes Before Starting:
- The HP 12C uses Reverse Polish Notation (RPN)—enter numbers first, then operators.
- Always clear previous data to avoid errors.
- Enter outflows as negative (e.g., -800) and inflows as positive.
- Interest rate (i) is entered as a percentage (e.g., 10 for 10%).
- For NPV, set i before computing. For IRR, the calculator iterates to find the rate.
Step-by-Step: Preparing the Calculator
- Turn on the calculator: Press ON.
- Clear financial registers: Press f CLEAR FIN (this zeros TVM keys like n, i, PV, PMT, FV).
- Clear storage registers: Press f CLEAR REG (this clears all registers, including cash flows). This is crucial—do it every time!
- Set decimal places (optional): Press f 4 (for 4 decimals) or adjust as needed.
Calculating NPV
- Enter the initial cash flow (CF₀): Key in the value (e.g., -800 for outflow), then press g CF0.
- For each subsequent cash flow (CFⱼ, j=1 to 20):
- Key in the value, press g CFj (e.g., g CFj).
- If the cash flow repeats n times consecutively, key in n, then press g Nj (e.g., for 3 identical years: 3 g Nj).
- Set the discount rate: Key in the annual rate (e.g., 10), press i.
- Compute NPV: Press f NPV.
The result is the NPV (positive = good). It is also stored in PV.
Example: NPV Calculation (Ungrouped Cash Flows)
Project: Initial investment $400 (outflow), then inflows: $150 (Yr1), $80 (Yr2), $90 (Yr3), $100 (Yr4), $110 (Yr5). Discount rate: 10%.


