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.
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.
| # | Asset | Units | Value | Debt now | LTV | Margin call / liq. | Zone | Liq. price | Move to liq. |
|---|---|---|---|---|---|---|---|---|---|
| 1 | BTC | 0.5000 | $31,000 | $15,998.63 | 51.6% | 80% / 90% | Below initial LTV | $35,552.51 | −42.7% |
| 2 | ETH | 8.00 | $19,200 | $13,195.88 | 68.7% | 75% / 83% | Above initial LTV | $1,987.33 | −17.2% |
| 3 | SOL | 150.00 | $18,000 | $12,968.49 | 72.0% | 70% / 80% | Margin-call zone | $108.07 | −9.9% |
| 4 | BTC | 0.2500 | $15,500 | $5,090.67 | 32.8% | 70% / 85% | Below initial LTV | $23,956.07 | −61.4% |
| 5 | ETH | 3.00 | $7,200 | $4,180.00 | 58.1% | 75% / 83% | Below initial LTV | $1,678.71 | −30.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:
- Initial LTV: the most you can borrow at the start. Binance's FAQ example: "assuming an initial LTV of 65% for USDT", 1,000 USDT of collateral lets you borrow up to 650 USDT. The file reproduces that example.
- Margin-call LTV: a warning level. Binance: "This margin call LTV represents a warning that the loan position is getting close to the liquidation LTV." Nexo describes a margin call as "a demand by Nexo that you top-up additional cryptoassets into your Credit Line Wallet to bring the value of the collateral back in line with the outstanding loan amount" (Nexo, Distinctive Risk Warnings).
- Liquidation LTV: the level at which the platform sells collateral. Binance: "A full liquidation occurs once a hard-cap liquidation LTV of 91% is reached for any cryptocurrency", and "You will be charged a 2% liquidation fee based on your borrowed amount" (FAQ updated 28 April 2026).
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
| Tab | What you type | What it calculates |
|---|---|---|
| Start here | Nothing | Steps, formulas in plain words, colour key, limits, sources, disclaimer |
| Summary | Nothing | Your 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 |
| Loans | As-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, notes | Per 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 test | Six 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 factor | Up to 8 collateral assets (amount, price, liquidation threshold, max LTV) and 6 debts; target health factor | Aave'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 |
| Example | Already filled: 5 fictional loans on 3 assets with fictional prices | The Loans tab with every result visible |
How to use it
- Open Loans. Type the as-of date in B5, or leave it blank to use today.
- 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.
- Add one row per loan. Pick the asset from the list, then type the amount, principal, APR, interest method and start date.
- 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.
- If the platform shows the outstanding amount, type it in column J. The sheet then uses that figure instead of its own interest estimate.
- 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.
| Field | Formula |
|---|---|
| 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:
- Interest = $12,500.00 × 9% × 152 ÷ 365 = $468.49. Debt = $12,968.49.
- LTV = $12,968.49 ÷ $18,000.00 = 72.05%. That is above the 70% margin-call level, so the zone is "Margin-call zone".
- Price at liquidation = $12,968.49 ÷ (150 × 80%) = $108.07, a move of −9.94%. The price at margin call, $123.51, is already above today's price (+2.9%): a positive move means the line is already crossed.
- Back to a 50% target: add $12,968.49 ÷ 0.50 ÷ $120.00 − 150 = 66.14 SOL ($7,936.99), or repay $12,968.49 − 0.50 × $18,000.00 = $3,968.49.
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.
| Loan | MC / liq. | Now | −10% | −20% | −30% | −40% | −50% | −60% |
|---|---|---|---|---|---|---|---|---|
| 1. BTC | 80% / 90% | 51.6% | 57.3% | 64.5% | 73.7% | 86.0% | 103.2% | 129.0% |
| 2. ETH | 75% / 83% | 68.7% | 76.4% | 85.9% | 98.2% | 114.5% | 137.5% | 171.8% |
| 3. SOL | 70% / 80% | 72.0% | 80.1% | 90.1% | 102.9% | 120.1% | 144.1% | 180.1% |
| 4. BTC | 70% / 85% | 32.8% | 36.5% | 41.1% | 46.9% | 54.7% | 65.7% | 82.1% |
| 5. ETH | 75% / 83% | 58.1% | 64.5% | 72.6% | 82.9% | 96.8% | 116.1% | 145.1% |
| All loans | 56.6% | 62.9% | 70.7% | 80.8% | 94.3% | 113.2% | 141.5% | |
| Loans liquidated | 0 | 1 | 2 | 2 | 3 | 4 | 4 |
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)
| Collateral | Units | Price | Value | LT | Value × LT | Price at HF = 1, others unchanged |
|---|---|---|---|---|---|---|
| ETH | 6.00 | $2,400.00 | $14,400.00 | 83% | $11,952.00 | $326.51 (−86.4%) |
| BTC | 0.15 | $62,000.00 | $9,300.00 | 78% | $7,254.00 | Not reached |
| USDC | 4,000.00 | $1.00 | $4,000.00 | 78% | $3,120.00 | Not 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.700 | 1.540 | 1.380 | 1.220 | 1.060 | 0.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
- Platform risk. Your collateral sits with the lender. The CFTC warns: "If the platform is hacked, goes bankrupt, or disappears, you may not be able to get your money back." The SEC's bulletin on crypto interest-bearing accounts lists "the risk that the company holding your crypto assets might fail or go bankrupt" and notes that "crypto assets sent to those companies are not currently insured" (SEC / Investor.gov bulletin).
- Gaps and liquidity. Nexo's risk page warns that, for example after a stablecoin de-peg, "If the resulting collateral depreciation outpaces the platform’s ability to liquidate the asset on time to obtain sufficient repayment value, it may leave the outstanding loan under collateralised" (Nexo). The sheet assumes the platform sells at your typed price; real sales can be worse.
- Price source. Platforms value collateral with their own price feeds. A short spike on one exchange can trigger a liquidation that your typed price would not show.
- Taxes. The IRS FAQ says: "If you sell digital assets for U.S. dollars or similar currency, you must recognize any capital gain or loss on the sale" (IRS, digital asset FAQ, Q49). It does not address crypto-backed loans directly. A liquidation sells your collateral, so it can be a taxable sale. Ask a tax professional; the capital gains tax calculator can estimate the US federal tax on a sale.
Common mistakes
- Leaving out interest. The debt grows every day. Use the platform's outstanding figure (column J) when you have it.
- Prices in the wrong currency. A EUR loan needs collateral prices in EUR. Mixing currencies gives a wrong LTV.
- Using another platform's thresholds. Liquidation LTVs differ by platform, asset and product. Type the ones on your loan page.
- Waiting for the margin call. By then the gap to liquidation can be a few percent. Check the stress test before the price moves.
- Adding collateral that falls with the loan. Topping up a BTC loan with more BTC does not protect against a BTC drop the way repaying debt does.
- Reading the health factor as a probability. 1.5 is not "50% safe". It says how far collateral values can fall, at the stated thresholds, before liquidation is allowed.
Limits
- No live prices: the file only knows the prices you type. One loan currency per file.
- Each loan row has one collateral asset. For pooled multi-asset positions use the Health factor tab.
- Interest uses a 365-day year. Your platform may accrue by the minute or hour and on a different base; column J overrides the estimate.
- Liquidation fees, partial liquidations and slippage are not modelled. Stress moves change prices only; debt stays constant.
- Recalculation was tested in LibreOffice; the file uses only functions that exist in Excel 2016+ and Google Sheets (TODAY is the only volatile one).
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
- Liquidation price calculatorLeveraged futures positions
- Crypto portfolio trackerHoldings, cost basis and P/L
- Crypto funding rate trackerPerpetual funding costs
- APR calculatorCompare borrowing rates
- Leverage P&L calculatorGains and losses with leverage
- Capital gains tax calculatorTax on a sale
- All templatesFree spreadsheets
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.