APR to APY calculator for LP compounding
Turn a pool's APR into the APY you really get when you reinvest fees. Add your deposit and the gas each compound costs to see whether weekly, monthly or daily compounding wins for your position size.
How APR becomes APY
APR is the simple yearly rate: fees earned on your original deposit only. APY counts the extra you earn when those fees are added back and start earning too. With n compounds a year the formula is APY = (1 + APR/n)^n − 1, so a 30% APR becomes about 34.9% compounded weekly and 35% compounded daily.
On chain every compound costs gas: you collect the fees and add them back to the position, and you pay for that each time. The calculator subtracts the gas on every compound, which is why compounding more often stops paying off. On a small position, daily compounding can burn more in gas than the extra interest it earns, so the net APY falls below a simple monthly schedule.
The best frequency depends on the ratio between your deposit and the gas cost. Larger positions and cheaper chains reward more frequent compounding. To keep it simple, the calculator assumes the APR stays constant all year, while real pool APRs move every day with volume, price and how long you stay in range.
Worked example: a $5,000 position earns 30% APR and you compound weekly at $2 of gas each time. Before gas the APY is 34.87%. After $104 of gas over the year the APY is 32.45% and you end with $6,622.60. Monthly compounding does better at 33.94%, while daily compounding costs $730 in gas and drops the net APY to just 17.95%.
How to convert APR to APY with gas costs
- Enter the APR shown by the pool, farm or your LP tracker.
- Enter the size of your position in USD.
- Pick how often you plan to collect fees and reinvest them.
- Enter the gas you pay per compound on your chain, then compare the net APY of every frequency in the table and switch to the best one.
Frequently asked questions
How do I convert APR to APY?
Use APY = (1 + APR/n)^n − 1, where n is the number of times you compound per year. For example, 30% APR compounded weekly (n = 52) gives about 34.9% APY before any costs.
How often should I compound my LP fees?
Compound as often as the extra interest beats the gas you pay each time. For a $5,000 position at 30% APR with $2 of gas per compound, monthly compounding earns the most; bigger positions or cheaper gas push the best frequency toward weekly or daily.
Is daily compounding always better?
Only when gas is close to free. Each compound costs a fixed amount of gas, so on small positions daily compounding can cost more than it adds and leave you with a lower APY than compounding monthly or not at all.
What is the difference between APR and APY in DeFi?
APR is the yearly return without reinvesting, while APY includes the effect of reinvesting rewards. Pools and farms often advertise APY, which assumes you compound for free at a set frequency, so compare APR figures when you want an apples-to-apples rate.
