Formualizer Docs

RATE

Solves for the periodic interest rate implied by annuity cash flows.

This function uses Newton-Raphson iteration and returns the per-period rate that satisfies the TVM equation.

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

=RATE(nper, pmt, pv, [fv], [type], [guess])

Arguments

ArgumentTypeRequiredDefault
npernumberRequired—
pmtnumberRequired—
pvnumberRequired—
fvnumberOptional—
typenumberOptional—
guessnumberOptional—

Remarks

  • Output is a rate per period; convert to annual terms externally if needed.
  • Cash-flow sign convention matters for convergence: use opposite signs for borrow/repay sides.
  • guess defaults to 0.1 and influences convergence speed and branch selection.
  • type = 0 means end-of-period payments; type != 0 means beginning-of-period payments.

Error cases

  • Returns #NUM! on non-convergence, near-zero derivative, or unsatisfied numeric conditions.

Examples

Solve for the periodic rate implied by the principal and payment.

Formula =RATE(24,-230,5000)

Expected result 0.00807142338523307

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?.

Use beginning-of-period payments and choose a starting guess for the solver.

Formula =RATE(24,-230,5000,0,1,0.02)

Expected result 0.00880192023640008

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?.

Infer the interest rate when a 5,017 loan is repaid in a single payment.

Formula =RATE(1,-5275,5017)

Expected result 0.0514251544747845

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 payment must be numeric before the solver can run.

Formula =RATE(24,"payment",5000)

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?.

Infer the monthly mortgage rate from a 300,000 principal and a rounded payment of 1,800.

Formula =RATE(360, -1800, 300000)

Expected result 0.00500582500676236

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?.

Infer the periodic rate of a 1,000 loan paid back in twelve payments of 89.

Formula =RATE(12, -89, 1000)

Expected result 0.0102692347720166

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 important is guess for RATE?

RATE uses Newton-Raphson from guess (default 0.1); a poor starting point can lead to non-convergence and #NUM!.

Implementation

Engine source

On this page