How to Calculate Profit on DeFi Lending: Adding Interest to Price Gains

How to Calculate Profit on DeFi Lending: Adding Interest to Price Gains

Lending your crypto on a DeFi protocol feels beautifully simple: deposit tokens, watch interest accrue, withdraw whenever you like. But when you ask "did I actually make money?" the math has more moving parts than the deposit screen suggests.

True profit is two engines — interest earned plus any price appreciation of the supplied token — minus everything that ate into it: gas fees, variable-rate drag, and the return you gave up elsewhere. Get the formula right and DeFi lending becomes a measurable, comparable investment instead of a warm feeling.

The two engines of lending profit

Engine one is interest: the protocol pays you a supply APY for your deposit, compounding block by block. Engine two is price movement: if you supply ETH and ETH rises 20%, your deposit's value rises 20% regardless of the interest rate.

Beginners track only the interest. But on volatile assets, price movement usually dwarfs the APY — a 6% annual rate means little next to a ±30% token swing. On stablecoins the reverse is true: the interest is essentially the whole story.

Key takeaway: Lending profit = interest earned + token price change. Ignore either engine and the number is fiction.

The three costs that eat your return

Gas fees

Supplying and withdrawing on Ethereum mainnet can cost $20–60+ per round trip depending on congestion. On a $5,000 deposit that is a real haircut; on a $500 deposit it can erase months of interest. Our guide to net profit after gas fees walks through the threshold math — and Layer 2 networks cut these costs dramatically.

Variable-rate drag

Supply APYs float with utilization. A 9% rate today can be 3% next month if borrowers leave. When estimating, use the trailing average rate, not the rate on the day you deposit — marketing APYs always quote the attractive moment.

Smart-contract risk (the hidden cost)

This one doesn't show in the math but belongs in the decision: a protocol bug or exploit can take the principal. Factor it in qualitatively — lower rates on battle-tested protocols versus higher rates on new ones is a risk trade, not free money.

Key takeaway: Subtract gas, use average (not peak) rates, and treat contract risk as a real cost when comparing protocols.

Worked example: $5,000 USDC vs 2.5 ETH

Two hypothetical deposits held 9 months, with $45 of round-trip gas each:

Line item $5,000 USDC at 6.5% APY 2.5 ETH (+20% price)
Starting value $5,000 $7,500 (2.5 ETH @ $3,000)
Interest earned ≈ $244 (6.5% × 9/12) ≈ $90 (1.6% supply APY)
Price appreciation $0 (stablecoin) +$1,500 (ETH to $3,600)
Minus gas (round trip) −$45 −$45
Net profit ≈ $199 (4.0%) ≈ $1,545 (20.6%)

Same protocol, same time period — but the ETH position's profit is dominated by price, while the USDC position is pure interest. Compare this against simply holding: if ETH had fallen 20%, the "lending" position would have lost money despite the interest. Lending doesn't hedge price risk.

For context on how yield strategies compare, see our stablecoin vs crypto yield comparison. Current protocol rates are best checked live on CoinGecko, and the mechanics of the largest lending markets are documented in the official Aave docs.

The opportunity-cost check

Before celebrating a 4% lending return, ask what the money would have done elsewhere: staked ETH earning consensus rewards, a yield-bearing stablecoin elsewhere, or simply held. Lending wins when its risk-adjusted net beats your next-best option — not when it merely beats zero.

Want the exact number for your deposit? The free calculator at cryptoprofitcalculator.tools adds up interest, price gains, and fees so you can see your true net profit on any DeFi lending position.

Conclusion

DeFi lending profit is interest plus price movement, minus gas and rate drag, measured against what you gave up. Run all five terms and you'll know — to the dollar — whether the protocol paid you or just entertained you.

Disclaimer: This article is for educational purposes only and is not financial advice. DeFi protocols carry smart-contract, price, and liquidity risks. Always do your own research and consider consulting a qualified financial professional before making investment decisions.

Crypto Profit Calculator Editorial Team

CryptoProfitCalculator Editorial Team — independent guides and tools for crypto investors.

This article was created with AI assistance and reviewed by the Crypto Profit Calculator editorial team.

Comments

No comments yet. Be the first to share your thoughts.

Leave a comment

Your email is never published.