Closing a position in trading means exiting a trade you currently hold, whether that means selling an asset you bought or buying back an asset you sold short. It’s the second half of any trade: the opening gets you in, and the close gets you out. Until you close, any gains or losses are only on paper. Once you close, they become real, both financially and for tax purposes.
How Closing Works for Long and Short Positions
If you hold a long position, meaning you own the security, closing it simply means selling it. You bought 100 shares of a stock at $50, and you sell them at $60. The position is now closed, and your $10-per-share profit is locked in.
Closing a short position works in reverse. A short position is the sale of a stock you don’t own. You borrow shares through your broker and sell them, hoping the price drops. To close the position, you buy those shares back on the open market and return them to the lender. If you shorted at $50 and bought back at $40, you pocket the $10 difference. If the price rose instead, you take the loss when you buy back at the higher price.
Order Types Used to Close a Position
You can close a position manually at any time the market is open, or you can set up orders in advance that close it automatically when certain price conditions are met. The order type you choose affects how quickly the trade executes and at what price.
- Market order: Closes your position immediately at whatever the current price is. You’re guaranteed execution but not a specific price, which matters in fast-moving or thinly traded markets where the price can shift between the moment you click and the moment the order fills.
- Limit order: Closes your position only at a price you specify or better. A sell limit order executes at your target price or higher. This gives you price control but no guarantee the order will fill if the market never reaches your price.
- Stop-loss order: Triggers a market order once the price hits a level you set. If you own a stock and want to cap your downside, you place a sell stop order below the current price. If you’re short, you place a buy stop order above the current price to limit losses if the stock rises. Once the stop price is reached, the order becomes a market order and executes at the next available price.
Many traders use a combination. They might set a limit order above their entry price to lock in a target profit (often called a take-profit order) and a stop-loss order below it to limit damage. Whichever triggers first closes the position.
Closing Positions in Options and Futures
Derivatives like options and futures add another layer because these contracts have expiration dates. You don’t always have to wait for expiration to close out, though. Both options and futures can be traded before they expire.
With options, you have the right but not the obligation to buy or sell at a set price. If you bought a call option, you can close the position by selling that same option contract before expiration. If the option expires and it’s not profitable to exercise, you can simply let it expire worthless. In that case, your loss is the premium you paid for the contract.
Futures work differently because they carry an obligation. A futures contract requires the buyer to purchase the underlying asset, and the seller to deliver it, on a specific future date, unless the position is closed before then. To close a futures position, you enter an offsetting trade: if you bought a contract, you sell the same contract. Most futures traders close before expiration to avoid actually taking delivery of, say, 5,000 bushels of corn.
When Your Broker Closes for You
Not every position is closed by choice. If you trade on margin (borrowing money from your broker to increase your buying power), your broker can close your positions without your permission if your account equity drops too low.
This process has two stages. The first is a margin call, which is a warning that your account equity is approaching the minimum required to keep your leveraged positions open. A margin call is not an execution event. It doesn’t close anything. It’s a signal to deposit more funds or reduce your positions.
The second stage is forced liquidation, and it’s fundamentally different. If your account equity keeps falling and no longer has enough margin to support the open loss, the platform steps in and closes your position automatically to prevent the account from going negative. At that point, you no longer control the exit. The system decides when and at what price your position closes.
In highly leveraged situations, the gap between a margin call warning and forced liquidation can be razor-thin. As leverage increases, the buffer between the warning threshold and the liquidation threshold narrows. During volatile sessions, a margin call can appear and liquidation can follow minutes later. At extreme leverage levels, the system may detect insufficient margin and act before you have any realistic chance to respond.
Tax Consequences of Closing a Position
A position that’s still open has unrealized gains or losses, meaning they exist on paper but haven’t been locked in. Closing the position turns them into realized gains or losses, and that’s when they become taxable.
The key factor is how long you held the position before closing it. If you held the asset for one year or less, any profit is a short-term capital gain and gets taxed at your ordinary income tax rate, which could be as high as 37% depending on your bracket. If you held it for more than a year, the profit qualifies as a long-term capital gain, which is taxed at significantly lower rates (0%, 15%, or 20% for most taxpayers).
This distinction gives you a practical reason to think about timing when closing a position. If you’re sitting on a profitable trade and you’re approaching the one-year mark, waiting a few extra days or weeks to close could meaningfully reduce your tax bill. Of course, market risk doesn’t pause for tax planning, so the potential savings have to be weighed against the chance the price moves against you in the meantime.
Partial Closes and Scaling Out
You don’t have to close an entire position at once. Many traders scale out by closing a portion of their position at one price and leaving the rest open. For example, if you bought 200 shares, you might sell 100 when the stock hits a certain target to lock in some profit, then let the remaining 100 shares ride with a trailing stop-loss in place.
Partial closes let you reduce risk while keeping exposure to further upside. Each partial close is its own transaction with its own realized gain or loss and its own holding period for tax purposes.

