yieldlogic

DeFi Net Yield & Gas Friction Calculator

Model net DeFi yields across liquidity pools and vaults after subtracting deposit gas, withdrawal gas, harvest frequencies, and protocol cuts.

INPUTS
OUTPUT
NET PROFIT
+$418.84
NET REALIZED APR
16.99%
BREAKEVEN DAYS
10 days
// formula
net_profit = deposit × (base_apr + reward_apr) × (1 − fee%) × (days/365) − gas_usd

How it works

Calculate true net DeFi returns after on-chain gas costs, smart contract deposit/exit friction, harvest transaction costs, and protocol performance fees. Designed for defi yield farmers, liquidity providers on ethereum l1, arbitrum, base, and solana evaluating net profit after transaction gas.

// formula
Net Yield = Gross Yield - (Deposit Gas + Exit Gas + Harvest Gas) - Performance Fees

FAQ

▶Why do small deposits in DeFi often lose money despite high yields?

Every interaction with a smart contract (approval, deposit, periodic harvest, withdrawal) requires an on-chain transaction fee. If you deposit $500 into a vault with a 20% APY on Ethereum Layer 1, spending $80 in cumulative gas will result in a net capital loss over a 90-day holding period.

▶How can investors minimize DeFi friction?

By deploying onto high-throughput Layer 2 networks (Arbitrum, Optimism, Base) or high-speed L1s (Solana), where transaction fees are pennies instead of tens of dollars. Alternatively, use auto-compounding vaults (Yearn, Beefy) that aggregate gas costs across all pool depositors.

▶What is the "Breakeven Horizon"?

The breakeven horizon is the minimum number of days your capital must remain deposited in the yield strategy before accumulated interest equals the round-trip gas costs paid to enter and exit the position.