APR to APY calculator

Convert between APR and APY, see what a deposit earns over time, and check whether compounding more often is worth the gas.

APR and APY in one minute

APR is the yearly rate without compounding: the interest you would earn in a year if it were paid out and never reinvested. APY includes compounding: the interest earned on earlier interest. The more often a yield compounds, the further APY sits above APR.

Staking platforms and DeFi protocols quote either one, and the same yield can look quite different depending on which. Convert both offers to APY with the same compounding before comparing them.

  • APY = (1 + APR ÷ n)ⁿ − 1, with n compounds a year
  • APR = n × ((1 + APY)^(1/n) − 1)
  • Continuous compounding: APY = e^APR − 1

When compounding costs gas

On-chain, compounding is not free: claiming rewards and depositing them again costs gas each time. On a small position, compounding daily can cost more than it adds. Enter the cost of one compound and the calculator compares every frequency and shows which leaves you with the most.

What it leaves out

Quoted yields are rarely fixed. The calculator assumes the rate stays the same for the whole period and does not include:

  • Changes in the price of the token you earn or deposit.
  • Lock-up periods, unbonding delays and early-withdrawal penalties.
  • Smart-contract, slashing and platform risk.

Frequently asked questions

What is the difference between APR and APY?

APR ignores compounding; APY includes it. A 10% APR compounded monthly is about 10.47% APY, and compounded daily about 10.52%.

Which is better to compare yields with?

APY, with the same compounding for both offers, because it is what you actually end up with if you reinvest. If a protocol quotes APR and does not compound for you, the APR is what you earn unless you compound by hand.

How often should I compound my DeFi rewards?

Often enough that the extra interest beats the gas. As a rule, compounding pays when one period's interest is clearly larger than the cost of one compound. Enter your deposit, APR and gas cost to see the best frequency.

Read next

Tools