Method Deck / finance

APR to APY (effective annual rate)

Converts a nominal annual percentage rate compounded periodically into the effective annual percentage yield.

Published for review. The Founder is checking every card himself; anything he strikes comes down the same hour.

Try it

Inputs

Outputs

Steps

  1. Convert the nominal rate to a decimal: r = nominal_annual_rate_percent / 100.
  2. Periodic rate i = r / compounds_per_year.
  3. APY as a decimal = (1 + i) ^ compounds_per_year - 1.
  4. effective_annual_rate_percent = APY * 100, rounded to 4 decimals for display as a percent with 2 shown.

Constants

None.

Sources

Worked example and test vectors

NameInputsAnswer
worked example{"nominal_annual_rate_percent":12,"compounds_per_year":12}12.68%
test vector: quarterly compounding{"nominal_annual_rate_percent":6,"compounds_per_year":4}6.14%

Published card