Buying on Margin and Short Sales

A casual breakdown of how buying on margin works — borrowing from your broker to buy stocks, why margin calls happen, and why losses hurt way more than gains feel good.

When you want to buy stocks, do you have to pay for the whole thing out of your own pocket?

No no no no — there’s a thing where the brokerage actually lends you money to buy stocks.

It’s called buying on margin.

Basically, the investor borrows part of the purchase price from the brokerage. “Part of” — meaning they’re not handing you the whole amount, all-in. You have to put down at least a required minimum (called the margin / credit deposit) into your brokerage account, and then the brokerage covers the rest.

The broker funds its lending and charges you margin interest under your account terms. The securities support the loan as collateral; that does not make the market loss disappear or mean the broker shares it with you.

The funding sketch in my course had the brokerage borrowing from banks or other financial institutions at a call rate, then adding a fee to lend to the customer. That’s the particular funding-chain example behind the margin-interest explanation, not every broker’s universal funding model.

The notes also described the collateral shares as held in the broker’s name. That’s the custody/registered-name detail I was referring to in that account setup; the actual custody and ownership rights depend on the account and market rules.

For ordinary purchases of margin-eligible U.S. stocks, Federal Reserve Regulation T generally permits borrowing up to 50% of the purchase price. The broker can require more of your own money, and other products or accounts can have different rules. The examples here are teaching cases, not a worldwide rule for every margin trade.

OK so let’s say you bought the stock. If the price keeps climbing, you pay off the interest you racked up on the borrowed money, and whatever’s left over is yours. Sweet.

The problem is when the price falls. Because the loss comes out of your share of the purchase, suddenly the margin percentage doesn’t hold up anymore.

So how do we actually compute this? First — how is the margin percentage even defined?

Equation from the original notes

Here “my money” means the current equity in the position, not a deposit number frozen at the day I bought it. Ignoring interest and fees for this margin calculation, equity is current market value minus the outstanding loan.

So a $10,000 stock gets clobbered down to $7,000 — let’s look at this. The key question: that $3,000 drop, whose share is it? Right — it’s unconditionally mine. The brokerage didn’t do anything wrong; the idea that they should eat part of the loss with you is kinda nuts, right???

Anyway. Say you initially bought the $10,000 stock with $6,000 of your own money plus $4,000 borrowed from the brokerage.

Equation from the original notes

Then the stock drops $3,000 — what happens to my margin percentage?

Equation from the original notes

This is exactly why we need a thing called the maintenance margin. The broker sets it.

If you fall below the maintenance requirement, the broker can demand more cash or securities — a margin call!!! It can also liquidate positions without first contacting you or waiting for a deadline. Don’t build a plan around always getting a friendly warning phone call. (There’s a movie called Margin Call. I should rewatch it.)

For the 100-share example below, keep the loan at 4,000, as in the displayed equation. The explanation’s $100P-400$ is missing a zero. Use $(100P-4000)/(100P)=0.30$, giving $P\approx57.14$ before interest and fees. The displayed 4000 equation itself is right.

Equation from the original notes

OK so buying on margin is investing with borrowed money, right? The key is return on my own equity: leverage magnifies both gains and losses relative to that equity. The loan interest then reduces either outcome — it is not a special penalty that only appears when prices fall. Naturally… heh haha.

Let’s just look at it with formulas. The profit when a $10,000 stock rises 30%, vs. the loss when a $10,000 stock drops 30%. (Let’s say the interest is around 9%.)

When the stock rises:

Equation from the original notes

When the stock falls:

Equation from the original notes

Those two original pictures subtract 900 and divide by 10,000, producing 21% and −39%. They do not give the return on the 6,000 of equity in our earlier 10,000-position/4,000-loan example.

Keep that earlier setup and take 9% as the loan interest for the comparison period, ignoring other costs. Interest is $4000\times0.09=360$. A 30% stock rise gives an equity return of $(3000-360)/6000=44\%$; a 30% fall gives $(-3000-360)/6000=-56\%$. Same starting equity, same borrowing cost — now we’re comparing like with like!


Next up: short sales. Short sales.

Short sales — in one word? A dirty trick.

That’s the dramatic reaction in the notes, not a claim that all short selling is illegal! Let’s look at the actual mechanism.

Short selling is selling a stock you “don’t have”…

How do you sell a stock you don’t have?!?!?! Yeah… you don’t have it… it’s not like you’re selling clouds or something, that’s weird… OK actually you’re not literally selling a stock you don’t have — you borrow the stock and sell it.

Again again again. The investor borrows shares from the brokerage and sells them.

And then the investor has to give back the borrowed shares, right??? You return the same number and class of shares — not necessarily the identical share certificates you first borrowed. So the investor goes back into the market, buys the same stock, and hands it back to the brokerage. This is called covering or closing the short position.

Normally when we hold stocks, we profit when the price goes up, right? With short selling, you profit when the price goes down.

Yeah yeah, of course, right?!?!!! So — you take a goooood look at some stock and decide it’s about to crash? Cool, go ahead and short it.

Remember the order-types discussion ? A buy stop can be used to try to close a short if the price rises against you — but it does not guarantee a loss cap.

OK OK, what does that mean?

You thought the price would fall so you borrowed shares and sold them. But the price could just as easily rise. So the investor places a stop buy order as a safety net.

Since the investor has to eventually buy the stock back in the market and return it to the brokerage, they’re on the hook for however much the price climbs. So let’s say you borrowed the stock and sold it at $100 (presumably because you thought it’d fall to $80).

A buy stop at $110 triggers a market order when the stop condition is met. If it fills at 110, the price-move loss is 10 per share before costs. But a jump or a fast market can produce a worse fill — 110 is a trigger, not insurance guaranteeing a 10-dollar maximum loss.

OK OK, one more thing. With buying on margin, what you owed the brokerage was money you borrowed. With short selling, the stock you borrowed is the debt.

So the margin calculation looks like this:

For the last sketch, the denominator $1000P$ means 1,000 shares, despite “100 shares” in its opening line. Its 150,000 is the account’s total credit balance, including short-sale proceeds, not necessarily the investor’s own deposit alone. With those stated quantities, $(150000-1000P)/(1000P)=0.30$ gives $P\approx115.38$. Treat that as the sketch’s simplified maintenance example, before borrowing fees or other charges.

Equation from the original notes

OK OK, got it. The borrowed money or borrowed shares still have to be repaid; leverage can lose more than the initial cash put in, and an uncovered short has no fixed maximum loss as the stock price rises. That’s why the borrowing terms and the order’s actual behavior matter, not just our prediction of direction.

For the U.S. account mechanics, see Investor.gov on margin accounts and short sales .

Questions or corrections?

Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.

Feedback goes to me privately by email; it is not posted as a public comment.