CalcStocks
Investing maths, shown in full
EN

Stock Margin Calculator

Plan one long stock purchase on margin. Start with the cash you have, the shares you want, or the total position value — the other numbers update in both directions. Then see the broker loan, projected interest, break-even after interest, and estimated margin-call price.

Cash, shares, and position value stay in sync Interest and margin-call price included Runs in your browser — no ticker lookup
Size the stock position

Edit cash, shares, or position value. Whichever one you change becomes the driver and the other two are solved immediately.

$
$

Your equity contribution, not the total buying power.

$

Currently sizing from: cash available

Broker requirements

Use the requirements shown by your broker for this security. House rules can be higher than regulatory minimums and can change without notice.

%

The percentage of the purchase you fund with your own cash.

%

The minimum account equity as a percentage of current market value.

Interest and exit scenario

Optional planning assumptions. Interest uses simple daily accrual on the unchanged loan balance.

%
$

Used for the projected profit or loss. It does not change the margin-call estimate.

Position value / buying power used

$20,000.00

400 shares at $50.00

Your cash
$10,000.00
Broker loan
$10,000.00
Exposure / cash
2.00×
Interest per day
$2.74

Holding cost and exit result

Projected interest
$82.19
Break-even after interest
$50.21
Gross P/L at exit
$2,000.00
Net P/L after interest
$1,917.81
Return on your cash
19.18%
Equity after sale
$11,917.81

Maintenance margin

Call price before interest
$33.33
Call price after projected interest
$33.61
Drop to projected call
-32.79%
Price buffer
$16.39

Estimate for one long stock position with an unchanged debit balance. Your broker's security-specific house requirement and liquidation policy control.

Downside stress test

Each row holds the loan and projected interest constant and reprices the stock. A call appears when equity falls below the maintenance requirement.

Price move Stock price Account equity Net P/L Maintenance

Compare the exposure before you use it

Margin is only one way to create more exposure than your cash buys outright. These are the two closest next calculations.

Compare with a long call

Carry the stock and exit prices into a defined-risk call option payoff, where the premium replaces an open-ended broker loan.

Compare a long call

Plan purchases without leverage

Use the same starting price and cash as a contribution plan instead of borrowing the balance at a variable margin rate.

Build a DCA plan

How to use the stock margin calculator

1

Choose the number you actually know

Type the cash you can commit, the share count you want, or the total position size. The last field you edit becomes the sizing driver, so you can work forward or backward without changing modes.

2

Enter both broker requirements

Initial margin sizes the purchase. Maintenance margin estimates the call threshold after the trade is open. They answer different questions and should not be treated as interchangeable.

3

Add the rate and holding period

Use the annual margin rate shown by your broker and a realistic number of days. The tool shows the daily cost, total projected interest, and the higher share price needed to break even after paying it.

4

Stress the downside

The table reprices the same position through gains and losses. Watch how account equity and the maintenance status move faster than the underlying stock because the broker loan does not fall with the price.

Stock margin calculator formulas

The calculator models one long stock position. It assumes the broker loan stays unchanged until sale and interest accrues simply on that debit balance. It does not simulate a broker's full account engine.

Position value = cash ÷ initial margin rate; broker loan = position value − cash

Interest = broker loan × annual rate × days ÷ 365

Estimated call price = (broker loan + accrued interest) ÷ [shares × (1 − maintenance rate)]

Initial margin and maintenance margin are different

Initial margin determines how much of a new purchase you must fund. A 50% requirement turns $10,000 of cash into up to $20,000 of stock buying power. Maintenance margin applies after the purchase and sets the minimum equity the account must retain. For a typical long margin stock, FINRA's general minimum is 25%, but brokers commonly impose higher house requirements and may raise them for a particular stock or account.

What the margin-call price means

At the estimated call price, market value minus the debit balance equals the selected maintenance percentage of market value. Below it, the row shows a maintenance deficiency. This is a planning threshold, not a promise that a broker will call first or wait before liquidating; account holdings, concentration, volatility, pending transactions, and house rules can move the real threshold.

Interest changes both break-even and risk

The loan may feel unchanged while the stock is held, but interest is still part of the trade. Dividing projected interest by the share count gives the extra price rise needed just to break even. If interest is charged to the account, the debit grows as well, which is why the projected call price is slightly higher than the before-interest figure.

Why cash, shares, and position value all remain editable

Most calculators force one direction: enter shares and price to learn the cash required, or enter cash to learn buying power. Investors work both ways. You may have a fixed cash risk budget, a target number of shares, or a desired exposure. This calculator remembers the last of those three fields you edited and solves the other two from it whenever price or initial margin changes.

Worked margin examples

The default scenario and the three effects that are easiest to underestimate.

  • Position sizing. With $10,000 cash and a 50% initial margin requirement, buying power is $20,000. At $50 per share that is 400 shares and a $10,000 broker loan.
  • Interest cost. A $10,000 loan at 10% for 30 days costs about $82.19, or $2.74 per day, using simple interest and a 365-day year.
  • Break-even after interest. Spread $82.19 across 400 shares and the stock must reach roughly $50.21 before the trade breaks even, before commissions, tax, and any rate changes.
  • Estimated call level. With a 25% maintenance requirement, a $10,000 loan and 400 shares, the call threshold before interest is about $33.33. Adding the projected interest raises it to about $33.61.
  • Leverage cuts both ways. A 10% rise from $50 to $55 creates a $2,000 gross gain on the $20,000 position — 20% of the original cash before interest. A 10% fall creates the same $2,000 loss, also 20% of cash.

Stock margin questions

The calculations, the borrowing cost, and the places where a broker's real rules take over.

Buying power

How do you calculate margin for a stock purchase?

Multiply the position value by the initial margin requirement to get the cash required. A $20,000 stock position at 50% initial margin needs $10,000 of your cash; the other $10,000 is the broker loan. Working backward, divide available cash by the margin rate: $10,000 ÷ 0.50 = $20,000 of buying power.

What is the margin buying-power formula?

Buying power for this single trade is cash divided by the initial margin requirement expressed as a decimal. At 50%, each $1 of cash supports $2 of stock, so leverage is 2:1. At 40%, each $1 supports $2.50. Your broker may restrict a security to a higher requirement, which reduces that buying power.

Can I calculate from cash, shares, or total position value?

Yes. All three fields are editable. The last one you change becomes the driver: cash solves for buying power and shares, shares solve for position value and cash, and position value solves for shares and cash. Changing stock price or initial margin then preserves that chosen driver.

What is the difference between initial and maintenance margin?

Initial margin is the equity required when opening a position. Maintenance margin is the minimum equity percentage required while holding it. Initial margin sizes the purchase; maintenance margin sets the call threshold. A broker can impose house requirements above regulatory minimums for either one.

What does 2:1 leverage mean in a margin account?

It means every $1 of your equity controls $2 of stock. Half of the position is your cash and half is borrowed. A 10% move in the stock is therefore roughly a 20% move on your original cash before interest and other costs.

Does the calculator support fractional shares?

Yes. Share counts are not rounded automatically, so a cash-driven result can include fractional shares. Whether you can actually trade that fraction depends on the broker and security; use a whole-share count as the driver if fractional trading is unavailable.

Interest

How is margin interest calculated?

This tool uses simple daily interest: loan balance × annual rate × days ÷ 365. A $10,000 debit at 10% for 30 days is $82.19. Brokers may use a different day-count convention, post interest monthly, change the rate during the holding period, or apply tiered rates, so reconcile the estimate with the broker's schedule.

Is margin interest charged daily?

It commonly accrues daily even if it is posted to the account monthly. The calculator therefore shows both the daily cost and the projected total. The exact posting cycle does not make the economic cost disappear, but it can affect when the debit balance used by a broker's margin engine increases.

Does margin interest accrue on weekends?

A margin loan is generally an outstanding debit every calendar day, not only a position held during market hours. The calculator accepts calendar days. Check the broker's agreement for its exact accrual and settlement conventions.

How do I calculate break-even after margin interest?

Add the projected interest to the purchase cost and divide by shares. Equivalently, add interest per share to the entry price. With 400 shares bought at $50 and $82.19 of interest, break-even is about $50.21 before commissions, taxes, dividends, or other fees.

What if my broker changes the margin rate?

Recalculate with the new annual rate or split the holding period into separate calculations for each rate. This page deliberately uses one rate for the whole period; it does not imply that a variable broker rate will stay fixed.

Is margin interest tax deductible?

That depends on how the borrowed funds were used, the type and amount of investment income, elections, and local tax rules. This calculator does not produce a tax figure. Keep the broker's interest statements and use current tax guidance or professional advice rather than treating the projected cost here as a deduction.

Margin calls

How do you calculate the margin-call price?

For one long position, divide the debit balance by shares times one minus the maintenance rate: debit ÷ [shares × (1 − maintenance)]. The projected version on this page adds the selected interest to the debit. With a $10,000 loan, 400 shares, and 25% maintenance, the before-interest estimate is $33.33.

Is maintenance margin always 25%?

No. FINRA's general minimum for many long margin securities is 25%, but brokers can impose higher house requirements, and individual volatile or concentrated positions may require much more. Enter the actual percentage shown by your broker for the security.

Why is my broker's margin-call price different?

A real account can contain other positions, cash, unsettled trades, concentrated holdings, security-specific requirements, interest postings, and house rules that this single-position model cannot see. Brokers also reserve the right to raise requirements. Use this result as a stress estimate, not as an account statement.

Does a broker have to warn me before selling shares?

Do not assume so. Investor.gov warns that a brokerage firm may sell securities to cover a shortfall without informing you in advance, and the firm chooses what to sell. A calculated threshold is not a grace period.

How much cash would I need to meet a margin call?

For the isolated position, the stress table's deficiency is the maintenance requirement times market value minus current equity when that number is positive. A broker's actual demand can differ because it is based on the entire account and its current house rules.

Does margin interest raise the margin-call price?

It can. If accrued interest increases the account debit, the stock does not need to fall as far before equity reaches the maintenance threshold. That is why this page shows a before-interest call price and a projected price after the selected holding cost.

Scope and risk

Can I lose more than the cash I invested on margin?

Yes. Leverage magnifies losses, interest continues to accrue, and a sharp gap can carry the position below the planned call threshold before liquidation occurs. You may still owe the broker after your original equity is gone.

Can I use this for short stocks, options, futures, forex, or crypto?

No. Their margin systems, payoff shapes, and maintenance rules differ materially. This calculator models one long stock or ETF position with a cash equity contribution and a fixed broker loan.

Does this calculate portfolio margin?

No. Portfolio margin uses risk-based scenario models across eligible positions and offsets. It cannot be reproduced honestly from one stock price and two percentages. Use the calculator supplied by the broker or clearing system that holds the account.

Does it fetch a live stock price or broker rate?

No. CalcStocks does not hold market data or connect to brokerage accounts. You enter every assumption, calculations run locally in the browser, and nothing is sent to a server. That makes the method inspectable but also means you must supply current broker terms.

Does a safe result mean I should use margin?

No. The output describes one mathematical scenario, not whether the security, leverage, or holding period is suitable. Volatility, liquidity, gaps, rate changes, concentration, and your ability to add funds are outside the arithmetic. Margin can create losses greater than the cash invested.

Verified against FINRA's published margin example

FINRA publishes a complete long-stock margin transaction in its investor guide. Running those same numbers through CalcStocks produces the same account equity, maintenance requirement, and margin deficiency:

  • Opening position. FINRA: $100,000 of margin stock funded with $50,000 cash and a $50,000 margin loan. CalcStocks: $100,000 position, $50,000 cash, $50,000 loan — match.
  • After the decline. FINRA reprices the position at $60,000 after a $40,000 loss. CalcStocks at a −40% stock move: $60,000 market value — match.
  • Account equity. FINRA: $60,000 market value minus the $50,000 loan equals $10,000. CalcStocks: $10,000 account equity — match.
  • Required equity. FINRA: 25% of $60,000 equals $15,000. CalcStocks: $15,000 maintenance requirement — match.
  • Maintenance deficiency. FINRA: $15,000 required minus $10,000 actual equity equals a $5,000 call. CalcStocks: $5,000 deficiency — match.
  • Call threshold. The same inputs give a call price of $66.67 per share, equivalent to FINRA's stated $33,337 maximum value loss apart from its whole-dollar rounding.

FINRA Brokerage Accounts — Margin Transaction Example — the primary source for every input and expected result above.

Checked 27 July 2026. FINRA supplied the public example; it has not reviewed or endorsed CalcStocks. The comparison sets interest to zero because FINRA's two-day example does not include an interest charge.

Method, sources, and limitations

Built and maintained by CalcStocks as a transparent arithmetic tool. The formulas are independently tested against worked examples. No outside expert review is claimed. All calculations run in your browser; the site receives no stock price, position, rate, or result.

This is an educational estimate for one long position. It uses simple interest on a fixed debit balance, a 365-day year, and the requirements you enter. It excludes portfolio offsets, commissions, dividends, taxes, settlement timing, variable-rate periods, day-trading rules, short positions, options, futures, forex, crypto, and broker-specific concentration or liquidation logic. Your broker's current agreement and account calculation control. Nothing here is investment, legal, or tax advice.

Contact

Found a bug, disagree with a formula, or want a calculator that is not here yet? Tell us.

Your message is emailed to us and not stored in a database. Please do not include account numbers, passwords or other sensitive details.