Home › Templates › Margin interest spreadsheet
Margin Interest Calculator Spreadsheet
A free margin interest calculator for Excel and Google Sheets. Log your debit balance, type your broker's rate tiers and pick a 360- or 365-day year. The sheet accrues interest day by day, totals it by billing month, shows what a 1% rate rise would cost, and checks your margin: equity %, buying power, the price that would trigger a margin call, and the return you need to cover the interest.
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.
| Month | Days | Avg debit | Interest | Eff. rate | If rates +1% | Cumulative |
|---|---|---|---|---|---|---|
| Jan 2026 | 31 | $26,210 | $268.18 | 11.882% | $290.75 | $268.18 |
| Feb 2026 | 28 | $40,271 | $366.96 | 11.716% | $398.28 | $635.14 |
| Mar 2026 | 31 | $67,419 | $669.27 | 11.528% | $727.33 | $1,304.41 |
| Apr 2026 | 30 | $100,817 | $958.12 | 11.404% | $1,042.14 | $2,262.53 |
| May 2026 | 31 | $95,452 | $936.56 | 11.394% | $1,018.76 | $3,199.09 |
| Jun 2026 | 30 | $119,650 | $1,116.88 | 11.201% | $1,216.58 | $4,315.97 |
| Jul 2026 | 31 | $85,552 | $822.06 | 11.159% | $895.73 | $5,138.03 |
| Aug 2026 | 31 | $91,961 | $878.47 | 11.093% | $957.66 | $6,016.50 |
| Sep 2026 | 30 | $131,750 | $1,190.26 | 10.841% | $1,300.05 | $7,206.76 |
| Oct 2026 | 31 | $135,229 | $1,259.15 | 10.813% | $1,375.59 | $8,465.91 |
How margin interest is calculated
A margin loan is a loan from your broker, secured by the securities in your account. Investor.gov puts it simply: "Like all loans, margin loans charge interest" (Investor.gov, Understanding Margin Accounts). Interest builds up every calendar day on the debit balance and is posted once a month:
Interest for a day = debit balance × annual rate ÷ days per year
Two broker settings change the result, and brokers do not all use the same ones.
1. Day count: 360 or 365
Interactive Brokers' calculation page lists "360: USD, EUR, CHF, CZK, JPY, SEK, NOK, DKK, HUF, MXN" and "365: AUD, CAD, CNH/CNY, GBP, HKD, KRW, ILS, INR, NZD, RUB, SGD", with the formula "Balance tier1 * Rate tier1 / numberOfDaysInYear" (Interactive Brokers, Margin Interest Calculations). Schwab's explainer says "Margin interest compounds daily on a 360-day basis" (Schwab, Understanding Margin Interest). Dividing by 360 instead of 365 adds 365 ÷ 360 − 1 ≈ 1.39% to the interest at the same rate. In the example that is $115.97 over 304 days.
2. Tiers: blended or whole balance
Margin rates fall as the balance grows, in bands. Interactive Brokers says it "uses a blended rate based on the tiers": for a large balance it charges "the first 100,000" at the Tier I rate and "the next 900,000 at the Tier II rate" (Interactive Brokers, Margin Rates). Fidelity publishes a table of debit-balance bands and says "The interest rate is determined by the margin schedule" and "Margin interest is charged daily on all settled debit balances in your account" (Fidelity, Margin rates). Not every schedule says whether a band rate applies to the whole balance or only to the slice inside the band, so the template offers both methods. Check your broker's agreement.
| One day at a $104,500 debit (example tiers) | Annual $ |
|---|---|
| Blended: $25,000 × 12.00% | $3,000.00 |
| + $75,000 × 11.25% (band $25,000 to $100,000) | $8,437.50 |
| + $4,500 × 10.00% (band from $100,000) | $450.00 |
| Blended total (11.376% effective) ÷ 360 = interest for the day | $11,887.50 → $33.02 |
| Same, ÷ 365 | $32.57 |
| Whole balance: $104,500 × 10.00% ÷ 360 | $10,450.00 → $29.03 |
Same balance, same table, a $3.99 a day gap between the two methods. That is why the method matters as much as the headline rate.
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 data next to the Example: total interest, average daily debit, highest debit, effective annual rate, the same log on the other day count, interest if rates were 1% higher, margin status, break-even. Monthly interest table (by calendar month or your broker's billing day) and 3 charts |
| Margin setup | Start date, 360 or 365, tier method, billing day, house maintenance %; up to 8 rate bands; up to 15 long positions; a new purchase to test; holding period; rate changes to test | Settings and tier checks; market value, equity, equity %, Reg T excess, buying power estimate, maintenance requirement and excess, margin status, call price per position, whole-account fall to a call; new-purchase call price; interest over the holding period and break-even return; what-if table |
| Debit log | The debit balance on days it changes (up to 731 calendar days); optional rate adjustment and note | Per day: balance in effect, adjustment in effect, annual interest at that balance, effective rate, interest for the day, cumulative interest, billing period |
| Example setup, Example log | Already filled with fictional rates, balances and positions | The same results, to compare with yours |
How to use it
- Open Margin setup. Type the first day of your log. Choose 360 or 365 days per year and the tier method your broker uses. If your broker bills on a fixed day (for example the 21st to the 20th), type the last day of the period (20).
- Type your broker's rate bands: where each band starts ($0 for band 1) and its annual rate. If the broker quotes a base rate plus or minus a spread, type the resulting rate for each band. Rates change often; use today's schedule.
- Open Debit log. Dates fill in by themselves. Type the settled debit balance on each day it changes, from your statement or account page. Blank days keep the previous balance, so weekends accrue as they should.
- When the broker changes its base rate, type the total change (for example −0.25%) in the adjustment column on the day it starts. When interest posts and raises your balance, type the new balance.
- Back on Margin setup, type your long positions and your house maintenance %. Read the margin status, the call price for each position, the new-purchase call price, and the break-even for your holding period. Then read Summary; every check must say OK.
Margin call price: Reg T, FINRA 4210 and house rules
Three layers of rules set how much equity you need:
- Initial margin, Regulation T: the Federal Reserve's rule sets the margin for a margin equity security at "50 percent of the current market value of the security or the percentage set by the regulatory authority where the trade occurs, whichever is greater" (12 CFR 220.12(a)). In plain terms, Investor.gov says "you may borrow up to 50 percent of the purchase price of margin securities".
- Maintenance margin, FINRA Rule 4210: equity must stay at "25 percent of the current market value of all margin securities" held long (FINRA Rule 4210(c)(1)). To open a margin position the rule also requires equity of at least $2,000, or the full cost when the purchase costs less (Rule 4210(b)(4)).
- House requirements: "Brokerage firms can establish their own 'house' requirements that are more restrictive than those rules" (Investor.gov). FINRA adds that a firm "isn’t required to notify you if your account equity drops below the minimum maintenance equity" and "Firms don’t have to issue a margin call before selling securities in your margin account" (FINRA, Know What Triggers a Margin Call).
For one stock bought on margin, the price that triggers a maintenance call is:
Margin call price = loan ÷ (shares × (1 − maintenance %))
With a 50% loan, the trigger as a share of the purchase price is 0.5 ÷ (1 − maintenance %):
| Maintenance | Call at % of buy price | Fall to the call | Bought at $50 |
|---|---|---|---|
| 25% | 66.7% | 33.3% | $33.33 |
| 30% | 71.4% | 28.6% | $35.71 |
| 35% | 76.9% | 23.1% | $38.46 |
| 40% | 83.3% | 16.7% | $41.67 |
| 50% | 100.0% | 0.0% | $50.00 |
At a 50% maintenance requirement, a stock bought with the full 50% loan is at the call level from day one. The template's new-purchase box gives the example's 100 shares at $50.00 with a 30% house requirement: loan $2,500.00, call price $35.71, a 28.6% fall.
For a whole account, the sheet also works out how far every position could fall together before equity hits the requirement, and, for each position, the price that would trigger a call if only that stock moved:
Call price for one position = price − maintenance excess ÷ (shares × (1 − requirement %))
| Symbol | Shares | Price | Value | Req. | Req. $ | Call price alone | Fall |
|---|---|---|---|---|---|---|---|
| XMPL | 800 | $182.40 | $145,920.00 | 30% | $43,776.00 | $74.38 | 59.2% |
| FICT | 650 | $96.15 | $62,497.50 | 40% | $24,999.00 | No call above $0 | — |
| DEMO | 1,200 | $41.80 | $50,160.00 | 30% | $15,048.00 | No call above $0 | — |
| SMPL | 150 | $268.90 | $40,335.00 | 30% | $12,100.50 | No call above $0 | — |
The fictional account holds $298,912.50 of stock against a $142,500.00 debit: equity $156,412.50 (52.3%), maintenance requirement $95,923.50, excess $60,489.00. XMPL is the only position big enough to trigger a call alone, at $74.38 (59.2% down). If everything fell together, the account could drop 29.8%, to $209,839.11. Reg T excess is $6,956.25, so the buying power estimate is $13,912.50.
The formulas
Per day on the Debit log (row 8 shown; the tier helper columns E to G on Margin setup turn blank bands into a lower bound of 1015 so they never apply):
| Cell | Formula in the file |
|---|---|
| Balance in effect (G8): typed balance, else yesterday's | =IF($B8="","",IF(AND($F8="OK",ISNUMBER($C8)),$C8,N($G7))) |
| Annual interest at that balance (I8), both tier methods | =IF($B8="","",IF('Margin setup'!$B$31<>"OK",0,MAX(0,IF('Margin setup'!$B$9="Whole balance",$G8*LOOKUP($G8,'Margin setup'!$E$23:$E$30,'Margin setup'!$G$23:$G$30),SUMPRODUCT(($G8>'Margin setup'!$E$23:$E$30)*((($G8<'Margin setup'!$F$23:$F$30)*$G8+($G8>='Margin setup'!$F$23:$F$30)*'Margin setup'!$F$23:$F$30)-'Margin setup'!$E$23:$E$30)*'Margin setup'!$G$23:$G$30))+$H8*$G8))) |
| Interest for the day (K8) | =IF($B8="","",$I8/'Margin setup'!$B$17) |
| Billing period (M8) | =IF($B8="","",IF(AND(ISNUMBER('Margin setup'!$B$10),DAY($B8)>'Margin setup'!$B$10),DATE(YEAR($B8),MONTH($B8)+1,1),DATE(YEAR($B8),MONTH($B8),1))) |
The blended part, SUMPRODUCT((G>lower)*(((G<upper)*G+(G>=upper)*upper)-lower)*rate), adds up the slice of the balance inside each band times that band's rate. The whole-balance part, G*LOOKUP(G,lower,rate), finds the band the balance falls in.
Margin setup (account, new purchase, break-even):
| Result | Formula in the file |
|---|---|
| Equity | =$B$55-$B$56 |
| Reg T excess | =$B$57-$B$59 |
| Buying power estimate | =MAX(0,$B$60)/$B$13 |
| Requirement % per position | =IF($E36="","",MAX($B$18,N($D36))) |
| Call price if only this position falls | =IF($E36="","",IF($B$63<0,"Already below maintenance",IF($F36>=1,"n/a: 100% requirement",IF($C36-$B$63/($B36*(1-$F36))<=0,"No call above $0",$C36-$B$63/($B36*(1-$F36)))))) |
| Whole-account fall to a call | =IF($B$55=0,"",IF($B$63<0,0,IF($B$56<=0,1,MAX(0,1-$B$56/($B$55-$B$62))))) |
| New purchase: call price | =IF(AND(ISNUMBER($B$70),ISNUMBER($B$71),N($B$70)>0,N($B$71)>0),IF(MAX($B$18,N($B$73))>=1,"n/a: 100% requirement",$B$75/($B$71*(1-MAX($B$18,N($B$73))))),"") |
| Interest over the holding period | =$B$86*MAX(0,N($B$84))/$B$17 |
| Break-even return on the position | =IF(IF(ISNUMBER($B$82),$B$82,$B$55)>0,$B$88/IF(ISNUMBER($B$82),$B$82,$B$55),"") |
Worked example from the sample data
- One day. On 14 April 2026 the fictional debit rises to $104,500. Blended across the three bands it costs $11,887.50 a year, or $33.02 for the day on a 360-day year.
- One month. April has 30 days at an average debit of $100,816.67. Interest: $958.12, an effective 11.404% a year.
- The whole log. 304 days from 01 Jan to 31 Oct 2026, average daily debit $89,640.13, highest $142,500.00: $8,465.91 of interest, an effective 11.184%. On a 365-day year it would be $8,349.94.
- A rate cut. From 1 July every band is 0.25% lower (a fictional base-rate cut typed once in the adjustment column). July's effective rate drops even though the balance is similar.
- Break-even. Holding today's $142,500.00 loan for 90 days costs $3,832.81 (10.759% a year). The $298,912.50 of positions must gain 1.282% just to cover it, or 2.450% on your own $156,412.50.
What if rates rise 1%?
The what-if table adds the same change to every band rate. It shows the cost over your holding period, the break-even return, and what the whole debit log would have cost at that rate. Example ($142,500.00 loan, 90 days):
| Rate change | Rate on loan | Interest, 90 days | vs today | Break-even | Whole log |
|---|---|---|---|---|---|
| −1.0 pp | 9.759% | $3,476.56 | −$356.25 | 1.163% | $7,708.95 |
| today's rates | 10.759% | $3,832.81 | $0.00 | 1.282% | $8,465.91 |
| +0.5 pp | 11.259% | $4,010.94 | +$178.12 | 1.342% | $8,844.39 |
| +1.0 pp | 11.759% | $4,189.06 | +$356.25 | 1.401% | $9,222.87 |
| +2.0 pp | 12.759% | $4,545.31 | +$712.50 | 1.521% | $9,979.83 |
Is margin interest tax deductible?
IRS Publication 550 (for 2025 returns) says: "If you borrow money to buy property you hold for investment, the interest you pay is investment interest." It adds: "your deduction for investment interest expense is limited to your net investment income. You can carry over the amount of investment interest you could not deduct because of this limit to the next tax year." (IRS Publication 550). The deduction is figured on Form 4952; Pub 550 lists tests under which you "do not have to complete Form 4952". The deduction is itemized, and interest on money used for tax-exempt income is not deductible. The template totals your interest by month and for the log, which helps you match broker statements; it does not figure the deduction.
Common mistakes
- Using the headline rate for the whole balance when the broker blends tiers, or the reverse. On $104,500 in the example the gap is $3.99 a day.
- Dividing by 365 when the broker uses 360 (about 1.39% too little interest), or the other way round.
- Counting only trading days. Interest accrues on weekends and holidays at the last balance.
- Forgetting posted interest. When interest posts it usually raises the debit, which then accrues interest too. Type the new balance.
- Assuming a call comes first. FINRA says firms "don’t have to issue a margin call before selling".
- Using FINRA's 25% when your broker's house requirement is higher, often per stock. Type the house % and any per-stock %.
Limits
- Your broker's statement decides what you owe. Day count, tier method, billing dates and posting dates vary by broker and currency.
- Long stock only. Short sales, options, futures, portfolio margin, day-trading buying power and interest earned on cash credits are not modelled.
- Buying power is a Reg T estimate; brokers track it as SMA, which can differ.
- The holding-period break-even holds the loan constant and ignores compounding, fees, dividends and taxes.
- The "+1%" figures add the change to the daily interest; a day whose rate would fall below 0% is floored at 0 in the log, not in that shortcut.
- Recalculation was tested in LibreOffice; the file uses only functions that exist in Excel 2016+ and Google Sheets.
FAQ
How is margin interest calculated?
Most brokers charge interest every calendar day on the settled debit balance: daily interest = debit balance × annual rate ÷ days in the year (360 or 365, depending on the broker and currency). The daily amounts add up over the month and post to the account once a month. With a tiered schedule the rate depends on the size of the balance, either slice by slice (blended) or as one rate for the whole balance.
Do brokers use 360 or 365 days for margin interest?
It depends on the broker and the currency. Interactive Brokers lists 360 days for USD and EUR and 365 days for GBP, CAD, AUD and several others. Schwab describes margin interest on a 360-day year. On the same balance and rate, a 360-day basis charges 365 ÷ 360 − 1 ≈ 1.39% more interest than a 365-day basis. Check your broker's margin-rate page or account agreement.
Is margin interest charged on weekends?
Interest accrues on calendar days, so the balance at the end of Friday normally accrues for Saturday and Sunday too. The spreadsheet does this by carrying the last balance forward on days you leave blank.
At what price will I get a margin call?
For one stock bought on margin: margin call price = loan ÷ (shares × (1 − maintenance requirement)). With the Regulation T 50% initial margin and FINRA's 25% minimum maintenance, that is 0.5 ÷ 0.75 = 66.7% of the purchase price, a fall of one third. A 30% house requirement raises it to 71.4%. Firms can sell your securities without issuing a call first.
How much return do I need to cover margin interest?
Break-even return = interest over the holding period ÷ position value. A $100,000 loan at 11% held 90 days costs about $2,750 on a 360-day basis; on a $200,000 position that is 1.375% before fees, taxes and dividends. The template works this out from your own tiers and shows it again for rate changes.
Is margin interest tax deductible?
In the US, interest on money borrowed to buy taxable investments is generally investment interest. IRS Publication 550 says the deduction “is limited to your net investment income”, unused amounts can be carried forward, and Form 4952 figures the deduction (with an exception for some simple cases). It is an itemized deduction. Ask a tax professional about your own return.
Related tools and templates
- Margin calculatorQuick margin and leverage numbers
- Trading risk management spreadsheetRisk per trade and exposure
- Trading cost spreadsheetFees, spreads and other costs
- Leverage P&L calculatorGains and losses with leverage
- APR calculatorCompare borrowing rates
- All templatesFree spreadsheets
Educational template only, not investment, tax or legal advice. Margin increases losses as well as gains; you can lose more than you deposit. Example data is fictional: the rates, balances, symbols and prices are made up and are not any broker's schedule. Brokers are quoted only to show how conventions differ; no broker is recommended and there are no affiliate links. Sources: 12 CFR 220.12 (ecfr.gov); FINRA Rule 4210 (finra.org); Investor.gov, Investor Bulletin: Understanding Margin Accounts (investor.gov); FINRA, Know What Triggers a Margin Call (finra.org); IRS Publication 550 and Form 4952 (irs.gov); Interactive Brokers margin interest and rate pages; Schwab, Understanding Margin Interest; Fidelity margin rates. Retrieved 10 November 2026.