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
| Argument | Type | Required | Default |
|---|---|---|---|
nper | number | Required | — |
pmt | number | Required | — |
pv | number | Required | — |
fv | number | Optional | — |
type | number | Optional | — |
guess | number | Optional | — |
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.
guessdefaults to0.1and influences convergence speed and branch selection.type = 0means end-of-period payments;type != 0means 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?.
Related functions
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!.