Stock Trading Margin Calculator
Buying shares on margin means putting up part of the cost and borrowing the rest. The margin required is the position value × the initial margin %. This calculator shows the margin, the amount borrowed, your leverage and the margin-call price where a maintenance call would trigger.
Use this stock trading margin calculator to see exactly what a margin purchase involves before you place it. Enter the share price, the number of shares, and the initial and maintenance margin requirements — it returns the cash you must fund, the amount the broker lends, your leverage ratio, and the price at which your position would face a margin call.
Enter the trade and margin requirements, then press Calculate.
How the stock margin calculator works
The calculator begins with the position value — the share price times the number of shares — which is the total you are buying. It multiplies that by your initial margin requirement to find the cash you must fund yourself, and the rest is the amount the broker lends you. Dividing the position value by your margin gives the leverage: at the standard 50% initial margin, that is 2:1, so every dollar of your money controls two dollars of stock.
It then finds the margin-call price using the maintenance margin — the point at which falling equity forces the broker to demand more cash or sell your shares. Knowing that price before you trade is the whole value of the exercise, because it tells you how much room the position has before trouble. Margin trading is a form of leverage worth understanding alongside ROI and the closely related currency exchange margin.
The margin formulas
- Initial — funded up front (Reg T: 50%)
- Maintenance — minimum equity kept after
- Leverage — position ÷ margin required
Leverage cuts both ways
The appeal of margin is obvious: with 2:1 leverage, a 10% rise in the stock becomes a 20% gain on your own money. The danger is the mirror image — a 10% fall becomes a 20% loss, and it keeps getting worse as the price drops toward the call price. Because you borrowed to buy, you owe that loan in full no matter which way the stock moves, and you pay interest on it the entire time you hold. The margin-call price is the line where the broker stops waiting, so treat it as the real risk boundary of the trade.
Respect the margin call
When a position falls to the margin-call price, you must add funds or the broker will sell your shares — often automatically and at the worst moment, locking in the loss. That forced selling is what makes margin so much riskier than buying with cash, where a dip is only a paper loss you can wait out. Keep a buffer well above the maintenance level, size positions conservatively, and never assume you will have time to react. Margin trading is best left to experienced investors who can absorb the downside.
Reg T and maintenance margin: the rules behind a margin account
Two rules set the boundaries of every U.S. margin account. Regulation T, set by the Federal Reserve, caps how much you can borrow to open a position: you must put up at least 50% of the purchase price, so you can borrow at most the other half. Once you hold the position, maintenance margin takes over — the minimum equity you must keep as a share of the position's value. FINRA sets the floor at 25%, but most brokers require more, often 30% to 40%, and can raise it on volatile stocks. Fall below the maintenance level and you get a margin call: add cash or securities, or the broker sells your holdings to restore the ratio, often without waiting for your permission. Knowing both numbers tells you how far a stock can fall before your broker forces your hand.
Estimate only — not investment advice. Margin rules vary by broker and account, and margin trading can lose more than your initial deposit. Confirm requirements with your broker.
How to use it & key terms
Enter the stock price, the number of shares, and the initial and maintenance margin requirements, then press Calculate to see the margin required, leverage and call price.
| Term | What it means |
|---|---|
| Position value | Share price times the number of shares. |
| Initial margin | The share you fund up front; U.S. Reg T minimum is 50%. |
| Maintenance margin | The minimum equity you must keep, often 25%–30%. |
| Margin required | Position value times the initial margin. |
| Leverage | Position value divided by your margin. |
| Margin-call price | The price where equity hits the maintenance level. |
Sources & methodology
The position value is the stock price times the number of shares. The margin required is the position value times the initial margin percentage, and the amount borrowed is the position value minus that margin. Leverage is the position value divided by the margin required, equal to one divided by the initial margin. The margin-call price for a long position is the purchase price times one minus the initial margin, divided by one minus the maintenance margin — the price at which the account's equity falls to the maintenance requirement. U.S. initial margin is set at 50% by Federal Reserve Regulation T, with maintenance minimums set by FINRA and brokers.
Sources: Federal Reserve Regulation T initial margin (50%) and FINRA/broker maintenance margin conventions for U.S. margin accounts.
The cost of time: holding a position on margin
A margin loan is not free money, and its true cost is measured in time. Interest accrues on the borrowed portion for every day the position is open, so the trade does not begin paying you until it has first outrun that interest. A stock that merely drifts sideways still costs you while it sits there, and the longer you hold, the higher the price has to climb simply to break even. This is why margin is usually a short-term tool: the same leverage that flatters a quick winner works steadily against you the longer the borrowed money stays in play.
The rules behind the account are also less fixed than they appear. The regulatory maintenance minimum is only a floor; brokers set their own "house" requirements above it and can raise them with little notice — especially on volatile or heavily concentrated positions — which moves your margin-call price against you even when the stock has not moved at all. A broker can also restrict borrowing against a particular security or cut the leverage it will extend, so the room you believe you have can quietly shrink between the day you buy and the day you most need it.
It is a mistake, too, to read the margin-call price as a guaranteed exit. It marks where a call is triggered, not the price you are certain to receive. In a fast or gapping market the forced sale can execute well below that level, and because you still owe the loan in full, a severe drop can wipe out your equity and leave you owing more than you originally put in. The neat call price this calculator shows is a planning line to respect, not a floor you can lean on.
Read together, these points argue for restraint. Keep a wide buffer above the maintenance level so ordinary swings do not force your hand, favour shorter holding periods so interest does not erode the case for the trade, and size positions so that even a sharp, sudden move is survivable. Margin can amplify a good decision, but it equally amplifies cost, time pressure and the price of being wrong — which is why it rewards caution far more than confidence.
Frequently asked questions
What is trading on margin?
Trading on margin means borrowing money from your broker to buy more stock than your own cash alone would allow, using the securities as collateral. You put up part of the purchase price — the margin — and the broker lends the rest. It magnifies both gains and losses, because you control a larger position than your cash would normally buy, while still owing the borrowed amount regardless of how the trade goes.
How much margin do I need to buy stock?
The margin required is the position value multiplied by the initial margin requirement. In the U.S., Federal Reserve Regulation T sets the initial requirement at 50%, so buying $10,000 of stock needs at least $5,000 of your own money, with the broker lending the other $5,000. Some brokers require more. This calculator multiplies the share price by the number of shares and then by your initial margin percentage to show the cash you must have in the account.
What is the difference between initial and maintenance margin?
Initial margin is the share of the purchase you must fund up front to open the position — commonly 50%. Maintenance margin is the minimum equity you must keep in the account afterward as the price moves, often 25% to 30%. If your equity falls below the maintenance level, the broker issues a margin call. The two requirements do different jobs: one governs opening the trade, the other keeps it open.
What is a margin call and at what price does it happen?
A margin call is the broker's demand that you add cash or securities because your equity has dropped below the maintenance margin. For a long position, the trigger price is the purchase price times (1 minus the initial margin) divided by (1 minus the maintenance margin). Buying at $50 with 50% initial and 25% maintenance margin triggers a call if the price falls to about $33.33. Below that, the broker can sell your shares to cover the loan.
What is leverage in margin trading?
Leverage is how much larger your position is than the cash you put up, and it is the inverse of the initial margin. A 50% initial margin gives 2:1 leverage — $1 of your money controls $2 of stock — while a 25% requirement would be 4:1. Higher leverage amplifies percentage gains and losses on your own capital, so a 10% move in the stock becomes a 20% swing in your equity at 2:1, and more at higher leverage.
What are the risks of buying stocks on margin?
Margin magnifies losses just as it magnifies gains, and it can cost you more than your initial stake. If the price falls, you can face a margin call and be forced to sell at the worst possible time, you still owe the borrowed money, and you pay interest on the loan the whole time. Because losses are amplified and forced selling is a real risk, margin trading suits only experienced investors who fully understand and can absorb the downside.
How much does buying on margin cost?
Margin is a loan, so you pay interest on the borrowed money for as long as you hold the position. Brokers set their own margin interest rates, usually on a tiered scale that falls as the balance rises, and the rate moves with the broader interest-rate environment, so it can range from high single digits to low double digits. Interest typically accrues daily and is charged monthly, quietly eating into your returns, so a position must gain more than the interest cost just to break even. Always check your broker's current margin rates before borrowing.
What is the pattern day trader rule?
The pattern day trader rule is a FINRA regulation for margin accounts. If you make four or more day trades, buying and selling the same security on the same day, within five business days, and they are more than 6% of your activity, you are flagged as a pattern day trader and must keep at least $25,000 in equity in the account. Fall below that and your day-trading is restricted until you top it back up. The rule exists because day trading on margin is high-risk, so regulators require a larger cushion.