Calculator
Margin interest calculator
Enter the amount borrowed, the yearly interest rate and the number of days the balance is held. The calculator returns the interest for the period and per day. The arithmetic is exact.
Calculator
Digits and a decimal point only, no thousands separators. Dates are written YYYY-MM-DD. Fields marked optional can stay empty.
- Interest for the period
- –
- Interest per day
- –
- Interest as a percentage of the amount borrowed
- –
Arithmetic only. Not tax, financial or investment advice. Nothing you enter leaves your browser.
In short. Interest on a borrowed balance is the amount borrowed times the yearly rate times the days held, divided by the days in the year used. FINRA says a margin account allows you to borrow money from a brokerage firm to buy securities. 25000 borrowed at 9.25 percent for 30 days on a 360-day year costs 192.71.
The formula
interest = amount borrowed × rate ÷ 100 × days ÷ days in the year
per day = amount borrowed × rate ÷ 100 ÷ days in the year
- The year length is a choice, 360 or 365 days, because the calculator cannot know which one a given broker uses. The choice changes the result slightly.
- FINRA describes a margin account as one that allows you to borrow money from a brokerage firm to buy securities. The interest on that loan is what this page calculates.
- Interest as a percentage of the amount borrowed is the rate times the days divided by the days in the year.
- The rate is whatever you enter. Brokers publish their own rates, and the calculator does not look any up.
Worked example
One invented balance, with the figures the calculator gives for it. The "Load the example" button fills in the same values. Each figure was produced at build time by the function the calculator runs.
| Field | Value |
|---|---|
| Amount borrowed | 25000 |
| Annual interest rate (%) | 9.25 |
| Days the balance is held | 30 |
| Days in the year used for interest | 360 |
| Figure | Result |
|---|---|
| Interest for the period | 192.71 |
| Interest per day | 6.4236 |
| Interest as a percentage of the amount borrowed | 0.7708 |
Rounding and exactness
- Rounding rule: half up. Money is shown to 2 decimals, per-share amounts to 4, and percentages and ratios to 2. Each figure is rounded once, from the exact result.
- No floating point. Each number you type is read as exact decimal text and held as a scaled whole number (BigInt). Sums, products and divisions are whole-number arithmetic.
- Input limits. Digits and one decimal point, at most 40 characters per number, and digits only for counts. Anything else is flagged and never guessed.
- Tested against a reference. The function is run against 16 test vectors for this calculator (plain cases, rounding ties, very large numbers, invalid input), computed independently with Python's
decimalmodule.
What it does not do
- Simple interest on one balance for the days entered. Compounding, a changing balance and tiered rates are not modelled.
- The day count and the posting schedule are the broker's. A statement shows what was actually charged.
- It does not include margin requirements. See the margin call page for what FINRA says about those.
Common questions
- Which year length applies?
- The one in your broker's own terms. The calculator offers both because it cannot tell which applies.
- What if the balance changed during the month?
- Run the calculator once for each stretch of days at each balance and add the results.
- Where does the interest show up?
- On the statement the broker issues, as a charge. Statementizer reads fees from supported statements into their own columns.
- Is margin interest the same as a margin call?
- No. Interest is the cost of the loan. A margin call is a demand for more funds or securities, and the margin call page covers what FINRA says about it.
Where the numbers come from
Interest and other charges appear on broker statements. Statementizer reads supported statement PDFs into a spreadsheet with each fee split out, and does not interpret margin positions.
See how Statementizer worksRelated
Sources
The calculation is arithmetic, so there is no regulator or vendor to cite for it. These are the references for how it is implemented and checked.
- Brokerage Accounts (margin accounts section)
- decimal: Decimal fixed point and floating point arithmetic
- BigInt
Verified on 2026-11-12 by the Statementizer Team.