Buy vs sell, the basics
Buy vs sell explained: what each order does to your account, why every trade needs a buyer and a seller, what a fill is, and how a position closes.
Part of the Market Mechanics: Orders and Execution track on Agenticks. About 8 minutes, written for a intermediate reader.
Last reviewed .
Key takeaways
- A buy acquires an asset and a sell gives one up for cash. Long and short describe the position you hold afterwards, not the action.
- Every trade needs a counterparty: your order fills only when someone on the other side agrees to a price.
- A quote is an invitation to deal. The fill is the price your account actually trades at.
- A trade's result is set by the gap between the entry and exit prices after costs, not by the entry alone.
Every trade has two sides. One person buys and another person sells, and a trade only exists when they meet at a price. That sounds obvious, but a lot of confusion later comes from skipping it. Before order types, spreads, or order flow make any sense, you need a clear picture of what actually happens the moment you press buy or sell. This lesson stays at that level on purpose. We are not deciding what to trade or when, just what these two words really mean and what moves through your account when an order goes through.
When you buy, you place an order to acquire an asset, like a share of a company or a futures contract. If the order executes, your account stops holding cash for that amount and starts holding the asset instead. The cash does not vanish; it has changed form into a position whose value now moves with the market. People often say they are going long when they buy something they expect to be worth more later, but the buy itself is just the act of acquiring. The position you are left holding is what makes you long. Keeping that distinction in mind helps later: a buy is an action, a long is a state you end up in.
When you sell, you place an order to give up an asset in exchange for cash. If you already own it, selling closes or shrinks that position and returns cash to your account. That is the everyday meaning, and it is the one to anchor on first. Selling has a second meaning too: you can sell something you borrowed in order to open a short position, betting the price falls so you can buy it back cheaper later. That is a more advanced move with its own risks, and it gets a full lesson of its own. For now, treat a plain sell as exiting what you already own.
A trade needs a buyer and a seller
Your buy does not happen in a vacuum. It executes against someone else's sell at an agreed price, and that matched execution is called a fill. No counterparty, no trade. The price you see quoted is just an invitation to deal; nothing is real until two sides actually meet. This is why a price on a screen and a price you can get are not always the same number.
It helps to separate the price from the action. A quote is what the market is showing right now: the best price a buyer is offering and the best price a seller is asking. Your buy or sell is the action you take against those quotes. When you buy at the market, you are usually agreeing to the price a seller is asking; when you sell at the market, you are usually agreeing to the price a buyer is bidding. The exact mechanics of those quotes come in later lessons on the bid-ask spread and market and limit orders. The point here is simpler: deciding to buy or sell is your choice, but the price you get depends on who is on the other side and what they are willing to do.
A complete trade is a round trip: you get in on one side and get out on the other. If you went long by buying, you finish the trade by selling. If you opened a short by selling borrowed shares, you finish by buying them back. Until you close it, a position is open and its value moves with the market every second the market is live. Many beginners think only about the entry and forget that every position has to be closed eventually. The gain or loss is not decided when you enter; it is decided by the difference between your entry price and your exit price, after costs.
Worked example: one long trade, start to finish
Illustrative round numbers. You buy 10 shares, hold them, then sell them.
| Buy 10 shares at $50.00 (10 x $50.00) | -$500 cash, +10 shares |
|---|---|
| Position while open (its value moves with the market) | 10 shares |
| Sell 10 shares at $54.00 (10 x $54.00) | +$540 cash, 0 shares |
| Gain before costs ($540 - $500) | $40 |
| Costs for the round trip (an assumed figure for this example) | $1 |
| Net result | +$39 |
Illustrative numbers, not a forecast. Had the exit been $48.00, the same steps would show a $21 loss after costs.
Two things people mix up
First, buying is not the same as long and selling is not the same as short. Buying and selling are actions; long and short are the positions you end up holding. Second, selling is not always bearish. If you already own something, selling is simply how you cash out, not a bet that the price will fall. Naming the action and the resulting position separately keeps the rest of trading much clearer.
buy sell fill
- Buy
- An order to acquire an asset
- Sell
- An order to give up an asset for cash
- Long
- A position that gains when price rises
- Short
- A position that gains when price falls
- Fill
- The actual execution of an order
Put the steps of a simple long trade in the order they happen.
- Place a buy order to enter
- The buy fills against a seller
- You hold an open long position
- Place a sell order to exit
You bought a position earlier and now you want to fully close it. What do you do? Place a sell order for the same quantity You went long by buying, so you exit by selling. Selling the position returns cash to your account and ends the trade.
You understand both sides of a trade
You now know what buying and selling actually do, why every trade needs a buyer and a seller, what a fill is, and how a position gets opened and closed.
Check your understanding
- You own 20 shares of a stock and place a sell order for 20 shares, which fills. What position do you hold afterwards?
- No position. The trade is closed.. Selling exactly what you own closes the long and returns cash to the account. Nothing is left open.
- The last trade printed at $25.10, but your market buy fills at $25.12. What best explains the difference?
- The last price was an earlier trade, and your buy filled against the lowest price a seller was asking. The last price is history. A market buy meets the current ask, which can sit above the last trade.
- You buy at $40.00 and later sell at $43.00, paying $0.50 a share in total costs. What is the result per share?
- A gain of $2.50. The exit minus the entry is $3.00, and costs take $0.50 of it, leaving $2.50.
Common questions
- What is the difference between buying and selling?
- Buying places an order to acquire an asset, so when it fills you own the position. Selling places an order to give up an asset you hold in exchange for cash, which closes or reduces your position.
- Does every buy need a seller?
- Yes. A trade only happens when a buyer and a seller agree on a price for the same asset. Your buy fills against someone else's sell, and the matched execution is called a fill.
- Is buying the same as going long?
- Not exactly. Going long means you own an asset and benefit if its price rises, and you usually get there by buying. A buy by itself is just the act of acquiring; the resulting position is what makes you long.
Terms defined in this lesson
Continue
- Next: Long vs short, explained simply
- Order types 1: market vs limit orders
- Bid, ask, and the spread
- What are futures? Contracts, margin and tick value
- Order types 2: stop, stop-limit, and brackets
- Market Mechanics: Orders and Execution track
- All Agenticks lessons
- Trading glossary
Sources
- Financial Industry Regulatory Authority. (n.d.). Order types. FINRA.
- Investopedia. (n.d.). Bid-ask spread. Investopedia.
Written and reviewed by the Agenticks Learn editorial team. How we write and check lessons.
Agenticks Learn is general education. It is not financial, investment, tax or legal advice, it does not take your situation into account, and nothing on it is a recommendation to buy, sell or hold any security or to open any account. Examples use illustrative numbers. Investing involves risk, including losing money you put in, and past performance does not predict future results. Tax rules and limits change; the official sources linked in each lesson are the final word.