yieldlogic
~/yieldlogic/tools

Crypto & DeFi calculators

Deterministic, client-side tools for yield, leverage and risk. Every formula is shown, nothing is stored, no sign-up.

16 RESULTS
YIELDcompound-interest

Crypto Compound Interest Calculator

Model the compounding velocity of crypto principal across arbitrary frequencies, recurring staking contributions, and periodic withdrawals.

A = P(1 + r/n)^(nt) + PMT × [((1 + r/n)^(nt) - 1) / (r/n)]
TRADINGpnl

Crypto Profit & Loss (P&L) Calculator

Calculate exact gross and net trading profitability for spot and perpetual positions, factoring in maker/taker exchange fees and funding drag.

Long: PnL = (Exit - Entry) × Qty - Fees | Short: PnL = (Entry - Exit) × Qty - Fees
RISKposition-size

Crypto Position Size & Risk Calculator

Determine mathematically optimal position sizing based on portfolio equity, risk tolerance, stop-loss distance, and leverage constraints.

Position Units = (Account Equity × Risk %) / (|Entry - Stop Loss| + RoundTrip Fees)
YIELDapr-to-apy

APR to APY Compounding Converter

Convert nominal crypto lending and staking APR into true effective APY across continuous and discrete compounding cadences.

APY = (1 + APR / n)^n - 1 | Continuous: APY = e^APR - 1
DEFIimpermanent-loss

DeFi Impermanent Loss Calculator

Quantify divergence loss across constant-product liquidity pools (Uniswap, Curve) and model fee yields required for net profitability.

IL = 2 × √(k) / (1 + k) - 1 where k = P_ratio_t / P_ratio_0
RISKliquidation

Perpetual Futures Liquidation & Leverage Calculator

Calculate exact liquidation prices for Long and Short perpetual positions, required maintenance margin, maximum loss buffers, and risk thresholds.

Long: P_liq = P_entry × (1 - 1/Lev + MMR) | Short: P_liq = P_entry × (1 + 1/Lev - MMR)
TRADINGdca-profit

Crypto DCA & Profit / Loss Calculator

Simulate disciplined dollar-cost averaging campaigns versus lump-sum entries, calculating true volume-weighted break-even prices and net ROI.

VWAP = (∑ Price_i × Amount_i) / ∑ Amount_i | ROI = (Current_Val - Total_Invested) / Total_Invested
YIELDstaking-apy

Crypto Staking Rewards & APY Calculator

Convert nominal staking APR into real compounding APY, adjusting for validator commissions, reward token price changes, and unbonding periods.

APY = (1 + APR / n)^n - 1 | Net Yield = Staked × Net_APY
DEFIdefi-yield

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.

Net Yield = Gross Yield - (Deposit Gas + Exit Gas + Harvest Gas) - Performance Fees
RISKcompound-profit

Compound Profit & Trade Growth Calculator

Simulate trading account exponential growth over consecutive trades, days, or months with customizable win percentage, profit reinvestment ratios, and periodic cashouts.

Balance_n = Balance_{n-1} + (Balance_{n-1} × Gain% × Reinvest%) - Withdrawals
INVESTINGhistorical-dca

Historical Crypto DCA Calculator

Backtest recurring monthly or weekly purchases of Bitcoin, Ethereum, or Solana from 2022 to today using historical spot data.

Total_Units = Σ (Contribution_i / Spot_i) · ROI = (Value - Invested) / Invested
INVESTINGwhat-if-i-bought

What If I Bought Crypto? Calculator

Enter any past purchase date and USD amount for Bitcoin, Ethereum, or Solana to see what that position would be worth today.

Value_Today = (Amount_USD / Price_At_Date) × Spot_Now
INVESTINGaverage-buy-price

Crypto Average Buy Price & Breakeven Calculator

Combine multiple crypto purchase lots at different prices to find your exact weighted average entry price and breakeven level.

Avg_Price = Σ (Spent_i) / Σ (Spent_i / Price_i)
NETWORKcrypto-unit-converter

Crypto Unit Converter (sats, gwei, lamports)

Convert between BTC and sats, ETH, gwei and wei, or SOL and lamports, with the live dollar value of every amount.

1 BTC = 10⁸ sats · 1 ETH = 10⁹ gwei = 10¹⁸ wei · 1 SOL = 10⁹ lamports
NETWORKtx-fee-estimator

Blockchain Transaction Fee Estimator

Estimate transaction costs for simple transfers, DEX swaps, and NFT mints across Ethereum L1, Arbitrum, Optimism, Base, and Solana.

Fee_USD = (Gas_Units × Gas_Price_Gwei × 10⁻⁹) × Native_Token_USD
NETWORKbitcoin-halving-countdown

Bitcoin Halving Countdown & Block Tracker

Track the current Bitcoin block height, blocks remaining until block 1,050,000, estimated halving date, and block reward schedule.

Remaining_Time = (1,050,000 - Current_Block) × 10 min
// WHY TRUST THESE NUMBERS

Each tool links to the research methodology that derives its formula, so you can check the math yourself.

read methodology →