Home › Templates › Crypto loan LTV tracker

Crypto Loan Calculator Spreadsheet: LTV, Margin Call and Liquidation Tracker

A free crypto loan calculator for Excel and Google Sheets. Log each crypto-backed loan with its collateral, principal, APR and the platform's LTV limits. The sheet shows the current LTV, the collateral price at margin call and at liquidation, how much collateral to add or debt to repay to get back to a target LTV, interest accrued, a stress test for price drops of 10% to 60%, and a DeFi health factor tab built on Aave's definition.

Download Excel template (.xlsx) 59 KB · 20 loans + DeFi position · no macros · Excel 2016+ and Google Sheets · v1.0, 10 Nov 2026

Use it in Google Sheets: choose File → Import → Upload in Sheets and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. No sign-up, no email gate, no add-in, no live price feed: you type the prices.

Preview: the Example tab and Summary on 2026-10-31. The lenders, prices and thresholds are fictional and are not market data or any platform's terms.
56.6%portfolio LTV ($51,434 debt on $90,900 collateral)
1 of 5loans in the margin-call zone
−9.9%price move to the nearest liquidation (loan 3, SOL)
$11,727collateral to add for target LTVs, or repay $6,143
$13.85interest per day (10.11% weighted APR)
#AssetUnitsValueDebt nowLTVMargin call / liq.ZoneLiq. priceMove to liq.
1BTC0.5000$31,000$15,998.6351.6%80% / 90%Below initial LTV$35,552.51−42.7%
2ETH8.00$19,200$13,195.8868.7%75% / 83%Above initial LTV$1,987.33−17.2%
3SOL150.00$18,000$12,968.4972.0%70% / 80%Margin-call zone$108.07−9.9%
4BTC0.2500$15,500$5,090.6732.8%70% / 85%Below initial LTV$23,956.07−61.4%
5ETH3.00$7,200$4,180.0058.1%75% / 83%Below initial LTV$1,678.71−30.1%
0%20%40%60%80%100%Bar = current LTV. Orange tick = margin-call LTV. Red tick = liquidation LTV.1. BTC · Lender ABelow initial LTV51.6%2. ETH · Lender BAbove initial LTV68.7%3. SOL · Lender CMargin-call zone72.0%4. BTC · Lender ABelow initial LTV32.8%5. ETH · Lender DBelow initial LTV58.1%

How LTV, margin calls and liquidation work

A crypto-backed loan lends you stablecoins or cash against coins you pledge. The lender watches one number, the loan-to-value ratio. Binance's loan FAQ defines it plainly: "LTV = Loan Value / Collateral Value", where the loan value includes accrued interest (Binance, Flexible Loan FAQ).

LTV = debt (principal + interest) ÷ (collateral units × price)

Platforms set three levels for each loan:

These numbers differ by platform, asset and product, and they change. The sheet does not ship any platform's thresholds: you type the ones shown for your loan. Interest also moves the LTV. Binance says "interest is accrued every minute", so the LTV can creep up even when the price stands still.

The price that matters: liquidation price

Solve the LTV formula for the price. At the liquidation LTV:

Price at liquidation = debt ÷ (collateral units × liquidation LTV)

Price at margin call = debt ÷ (collateral units × margin-call LTV)

Divide by today's price and subtract 1 to get the move that triggers it. The sheet does this for every loan and lists the loan nearest to liquidation on the Summary tab.

What's inside the spreadsheet

TabWhat you typeWhat it calculates
Start hereNothingSteps, formulas in plain words, colour key, limits, sources, disclaimer
SummaryNothingYour loans next to the Example: loans counted, rows to fix, collateral value, principal, interest, total debt, portfolio LTV, loans per zone, nearest liquidation and which loan, collateral to add or debt to repay to reach targets, borrowing room, interest per day and per 30 days, weighted APR. A multi-collateral table by asset (units, value, debt, combined LTV, share). DeFi health factor for both positions. Two charts
LoansAs-of date, up to 12 asset prices, up to 20 loans: platform, collateral asset and amount, loan currency, principal, APR, Simple or Daily compound, start date, outstanding from the platform (optional), initial / margin-call / liquidation LTV, target LTV, notesPer loan: row status, price used, collateral value, days, interest, debt now, LTV, zone, max loan at initial LTV, room left, price at margin call and at liquidation, the price moves to reach them, collateral to add (units and value), debt to repay, interest per day
Stress testSix price moves (default −10% to −60%)LTV of every loan and of the whole book after each move, coloured by zone, and a count of loans in the margin-call zone and at liquidation
Health factorUp to 8 collateral assets (amount, price, liquidation threshold, max LTV) and 6 debts; target health factorAave's and Binance's documented examples reproduced, your health factor, weighted liquidation threshold, borrow limit, extra debt before HF = 1, price of each collateral at HF = 1, debt to repay or collateral to add for a target HF, health factor after the stress moves
ExampleAlready filled: 5 fictional loans on 3 assets with fictional pricesThe Loans tab with every result visible

How to use it

  1. Open Loans. Type the as-of date in B5, or leave it blank to use today.
  2. In the price table, type each collateral asset and its price in the loan currency. A USDC loan backed by BTC needs the BTC price in USDC. The sheet treats stablecoins at face value.
  3. Add one row per loan. Pick the asset from the list, then type the amount, principal, APR, interest method and start date.
  4. Type the three LTV levels from your platform's loan page: initial, margin call, liquidation. If it quotes a collateral ratio (CR) instead, LTV = 1 ÷ CR; a 150% CR is a 66.7% LTV.
  5. If the platform shows the outstanding amount, type it in column J. The sheet then uses that figure instead of its own interest estimate.
  6. Check that Row status says OK, then read the Summary and Stress test tabs. Update the prices whenever you check your loans.

Holding the same coins outside the loan too? Track the whole holding in the crypto portfolio tracker. Leveraged perpetual futures use a different liquidation rule; see the liquidation price calculator and the funding rate tracker.

The formulas

Interest, Simple = principal × APR × days ÷ 365

Interest, Daily compound = principal × ((1 + APR ÷ 365)days − 1)

Collateral to add = debt ÷ target LTV ÷ price − units  ·  Debt to repay = debt − target LTV × collateral value

LTV after a price move m = debt ÷ (collateral value × (1 + m))

Exact formulas from the Loans tab (row 23). In the file each one is wrapped in IF($P23="OK", …, ""), so a row stays blank until its inputs pass the checks. $C$5 is the as-of date used and $A$8:$B$19 is the price table.

FieldFormula
Collateral price used (Q)=INDEX($B$8:$B$19,MATCH($C23,$A$8:$A$19,0))
Collateral value (R)=$D23*$Q23
Interest accrued (T)=IF($H23="Simple",$F23*$G23*$S23/365,$F23*((1+$G23/365)^$S23-1))
Debt now (U)=IF(ISNUMBER($J23),$J23,$F23+$T23)
Current LTV (V)=$U23/$R23
Zone (W)=IF($V23>=$M23,"At or over liquidation LTV",IF($V23>=$L23,"Margin-call zone",IF($V23>$K23,"Above initial LTV","Below initial LTV")))
Price at margin call (Z)=$U23/($D23*$L23)
Price at liquidation (AA)=$U23/($D23*$M23)
Price move to liquidation (AC)=$AA23/$Q23-1
Collateral to add, units (AE)=MAX(0,$U23/$AD23/$Q23-$D23)
Debt to repay to target (AG)=MAX(0,$U23-$AD23*$R23)

Stress test, first move for the first Example loan: =IF(Example!$P$23="OK",Example!$U$23/(Example!$R$23*(1+G$5)),""). The move cells are yellow, so you can test any drop.

Worked example from the sample data

Loan 3: in the margin-call zone

Fictional: 150 SOL at a fictional $120.00 = $18,000.00 of collateral. Principal $12,500.00 at 9% APR, simple interest, started 2026-06-01. Thresholds: initial 50%, margin call 70%, liquidation 80%. As of 2026-10-31:

Loan 2: compounding vs simple interest

$12,000.00 at 12% APR with daily compounding for 289 days: $12,000.00 × ((1 + 0.12 ÷ 365)289 − 1) = $1,195.88. Simple interest would be $1,140.16. Compounding adds $55.72. With interest the debt is $13,195.88, an LTV of 68.7%: above the 60% initial LTV, and $1,675.88 more than the platform would lend today on the same collateral. Loan 5 shows the other route: the platform's outstanding figure ($4,180.00) is typed in column J and used as the debt.

Stress test

LTV of each Example loan after the price of its collateral moves. Orange = margin-call zone, red = at or over the liquidation LTV.

LoanMC / liq.Now−10%−20%−30%−40%−50%−60%
1. BTC80% / 90%51.6%57.3%64.5%73.7%86.0%103.2%129.0%
2. ETH75% / 83%68.7%76.4%85.9%98.2%114.5%137.5%171.8%
3. SOL70% / 80%72.0%80.1%90.1%102.9%120.1%144.1%180.1%
4. BTC70% / 85%32.8%36.5%41.1%46.9%54.7%65.7%82.1%
5. ETH75% / 83%58.1%64.5%72.6%82.9%96.8%116.1%145.1%
All loans56.6%62.9%70.7%80.8%94.3%113.2%141.5%
Loans liquidated0122344

A 10% drop already takes loan 3 to liquidation. At −40%, 3 of the 5 loans are at or over their liquidation LTV, and the whole book's LTV is 94.3%. Crypto prices can move this far: the CFTC's list of digital asset risks warns that "Uncertainty, changes in sentiment, economic conditions, or even a social media comment, can send market values rising or falling sharply" (CFTC, 14 Digital Asset Risks to Remember).

DeFi health factor (Aave)

DeFi lending markets use a health factor instead of an LTV limit. Aave's help page defines it as:

Health Factor = (Total Collateral Value × Weighted Average Liquidation Threshold) ÷ Total Borrow Value

That is the same as Σ (each collateral's value × its liquidation threshold) ÷ total debt. Aave's own example: "if you supply $10,000 in ETH with an 80% liquidation threshold and borrow $6,000 in GHO, your health factor would be 1.333" (Aave Help Center, Health Factor & Liquidations). The Health factor tab reproduces it: 10,000 × 0.80 ÷ 6,000 = 1.3333, which rounds to the stated 1.333. The Aave V4 docs give the same example with an "80% Collateral Factor" (Aave V4 docs, User Positions).

Below 1, the position can be liquidated. Aave's help page: "During liquidation, the liquidator repays debt on behalf of the borrower and receives an equivalent value plus a liquidation bonus from the borrower's collateral." It also sets the size: "Up to 50% of total debt can be liquidated when the health factor is above 0.95 AND both the collateral and debt values are at least $2,000 each", and up to 100% at 0.95 or below. It also says: "There is no universally "safe" health factor, as this depends on the volatility and correlation of your assets."

Example position (fictional)

CollateralUnitsPriceValueLTValue × LTPrice at HF = 1, others unchanged
ETH6.00$2,400.00$14,400.0083%$11,952.00$326.51 (−86.4%)
BTC0.15$62,000.00$9,300.0078%$7,254.00Not reached
USDC4,000.00$1.00$4,000.0078%$3,120.00Not reached

Debt: $12,000 USDC. Health factor = $22,326 ÷ $12,000 = 1.8605. Weighted liquidation threshold 80.60%. The position could take $10,326 more debt before HF reaches 1. With ETH and BTC both falling (USDC held flat):

−10%−20%−30%−40%−50%−60%
1.7001.5401.3801.2201.0600.900

The health factor formula in the file: =IF($B$74>0,$B$72/$B$74,"No debt"). Price of one asset at HF = 1 with the others unchanged = (debt − the other assets' value × LT) ÷ (units × LT): =IF(AND(AND(ISNUMBER($B54),ISNUMBER($C54),ISNUMBER($D54)),N($B$74)>0,N($B54)*N($D54)>0),IF($B$74-($B$72-$H54)>0,($B$74-($B$72-$H54))/($B54*$D54),"Not reached: others cover the debt"),"").

Risks a spreadsheet cannot show

Common mistakes

Limits

FAQ

How do you calculate LTV on a crypto loan?

LTV = loan value ÷ collateral value. Take the debt, including accrued interest, and divide it by the collateral amount times its current price. A $13,000 debt against 150 coins at $120 ($18,000) is an LTV of 72.2%. The LTV rises when the price falls or interest builds up, and falls when you add collateral or repay.

How is the liquidation price of a crypto loan calculated?

Liquidation price = debt ÷ (collateral units × liquidation LTV). With a $12,968.49 debt, 150 coins and an 80% liquidation LTV, the price at liquidation is $108.07. The price move to get there is that price ÷ today's price − 1. Use the threshold your platform publishes for your loan; it differs by platform and asset.

What happens at a margin call on a crypto loan?

A margin call is a warning that the LTV has reached the platform's margin-call level, close to the liquidation level. You can add collateral or repay part of the loan to bring the LTV down. If the LTV keeps rising to the liquidation level, the platform sells collateral to repay the loan, and it may charge a fee (Binance's FAQ lists a 2% liquidation fee).

How do you calculate the Aave health factor?

Aave defines it as (total collateral value × weighted average liquidation threshold) ÷ total borrow value, which is the sum of each collateral's value × its liquidation threshold, divided by the debt. Aave's example: $10,000 of ETH with an 80% liquidation threshold and $6,000 borrowed gives 10,000 × 0.8 ÷ 6,000 = 1.333. Below 1 the position can be liquidated.

What is a safe LTV for a crypto loan?

No single number is safe. What matters is the gap between your LTV and the liquidation LTV, and how far the price can fall before you close it. The stress test tab shows the LTV of each loan after price drops of 10% to 60%. Aave notes there is no universally safe health factor because it depends on the volatility of your assets.

Is borrowing against crypto a taxable event?

The IRS digital-asset FAQ says you must recognize gain or loss when you sell digital assets, but it does not address crypto-backed loans directly. A liquidation sells your collateral, so it can create a gain or loss. Tax rules depend on your situation and country; ask a tax professional.

Related tools and templates

Educational template only, not investment, tax or lending advice. No lender or protocol is recommended, and no platform paid for or reviewed this page. Example data is fictional: the lenders, prices, thresholds and positions are made up to show the formulas and are not market data or any platform's terms. Sources: Aave Help Center (aave.com); Aave V4 docs (aave.com); Binance Flexible Loan FAQ (binance.com); Nexo Distinctive Risk Warnings (nexo.com); SEC Office of Investor Education and Advocacy (investor.gov); CFTC (cftc.gov); IRS (irs.gov). Retrieved 10 November 2026.