Formualizer Docs

PV

Calculates present value from periodic cash flows at a fixed rate.

Use this to discount a regular payment stream and optional terminal value back to time zero.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=PV(rate, nper, pmt, [fv], [type])

Arguments

ArgumentTypeRequiredDefault
ratenumberRequired—
npernumberRequired—
pmtnumberRequired—
fvnumberOptional—
typenumberOptional—

Remarks

  • rate is the discount rate per period.
  • Cash-flow sign convention: inflows are positive and outflows are negative.
  • type = 0 assumes payments at period end; type != 0 assumes period start.
  • When rate is zero, present value is computed with simple arithmetic (no discounting).

Error cases

  • Returns argument-related errors if coercion fails or an input is an error value.

Examples

Discount a series of two years of monthly payments.

Formula =PV(0.05/12,24,-250)

Expected result 5698.47459848898

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Discount beginning-of-month payments instead of end-of-month payments.

Formula =PV(0.05/12,24,-250,0,1)

Expected result 5722.21824264935

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

With no interest the calculation reduces to undiscounted payments.

Formula =PV(0,24,-250)

Expected result 6000

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

The discount rate must be numeric.

Formula =PV("rate",24,-250)

Expected result #VALUE!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Recover the mortgage principal from its 360 monthly payments.

Formula =PV(0.06/12, 360, -1798.65157545827)

Expected result 300000

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Value ten 500 payments at a zero discount rate.

Formula =PV(0, 10, -500)

Expected result 5000

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

How does type change PV?

type=0 discounts end-of-period payments, while non-zero type treats payments as beginning-of-period (annuity due).

Implementation

Engine source

On this page