Skip to content

The basics · Basics

How investing in stocks works: the basics

How brokerage accounts, market and limit orders, costs and diversification work, explained from SEC and FINRA investor materials.

By , Checked against filings: , 4 min read

For learning only. Cityfort is not a registered investment adviser or broker-dealer and does not recommend buying or selling any security. Prices shown are dated and may be out of date.

A stock is an ownership stake in a company, which is why stocks are also called equities.[S8] The stock may rise in value and pay dividends, or the holder may lose some or all of the money.[S1]

This page explains how the parts work: accounts, orders, costs and diversification. It does not say whether, when or what to invest.

What kind of account holds stocks?

Investors can buy and sell stocks through a brokerage firm, using a brokerage account.[S3] Opening one typically means signing a new account agreement, which sets out the holder's legal rights.[S1]

The SEC says the broker should ask about goals, income, net worth, investment experience and willingness to take risk.[S1] The agreement also records who makes the final decisions in the account.[S1]

Brokerage accounts differ on borrowing:[S2]

  • Cash account: the investor pays the full amount for securities bought and cannot borrow from the broker-dealer to pay.
  • Margin account: the broker-dealer lends the investor cash, using the account as collateral, to buy securities.

The SEC's bulletin gives an example of a $50 stock that falls to $25.[S2]

An investor who paid in full has lost 50 percent. One who paid $25 and borrowed $25 has lost 100 percent and still owes interest.[S2]

The SEC adds that a margin account holder can lose more money than was invested. The firm can also sell the securities without consulting the holder, to pay off the loan.[S2]

How does an order work?

An order is an instruction to the brokerage firm. The two most common types are the market order and the limit order.[S3]

Market order. This is an order to buy or sell at the best available price. It generally executes immediately, but the price is not guaranteed.[S3]

Limit order. This is an order to buy or sell at a specific price or better. It only fills if the market price reaches the limit, so it may not execute.[S3]

Timing is part of the order too. Unless the investor sets a time frame, an order is a day order, good only for that trading day.[S3]

Brokerage firms may offer other order types, and not every firm offers every type.[S3]

After a trade comes settlement, when the money is paid and the shares are delivered.[S10] For most broker-dealer trades, the standard cycle became T+1 on May 28, 2024: one business day after the trade date.[S4]

What does it cost?

The SEC sorts fees into two types: transaction fees and ongoing fees. Transaction fees come when an investor buys, sells or exchanges an investment, and ongoing fees come regularly.[S5]

Costs can include these:

  • Commission: where a firm charges one, it pays the financial professional and the firm for acting as agent on a trade.[S5]
  • Markup or markdown: when a broker-dealer sells from its own holdings, it may charge above the market price. When it buys, it may pay below.[S5]
  • Spread: the difference between the purchase price and the sale price. A brokerage may earn a profit on it.[S6]
  • Account fees: for example, for account maintenance, transfers, wires, inactivity or falling below a minimum balance.[S5]
  • Fund expenses: mutual funds and ETFs take annual fees from fund assets, shown as a percentage, the expense ratio.[S5]

An ETF, or exchange-traded fund, is a fund bought and sold like a stock.[S5]

Ongoing fees matter over time because they cost twice. The balance is reduced by the fee, and any return that money would have earned is lost as well.[S5]

The SEC says the types and amounts of fees can be found in account opening documents, statements and confirmations.[S5]

What does diversification do?

The SEC describes diversification as "the practice of spreading money among different investments to reduce risk".[S7]

It can happen between asset categories, such as stocks, bonds and cash, and within them, across companies and industries.[S7] Funds are one route: the SEC notes that a total stock market index fund owns stock in thousands of companies.[S7]

FINRA describes the opposite as concentration risk. The more money sits in one investment, such as a single stock, the greater the risk taken.[S9]

Diversification has limits. The SEC says it "can't guarantee that your investments won't suffer if the market drops".[S1]

A company's own spread of businesses is a separate idea, and it is what Cityfort pages show.

Largest segment at Amazon: North America: 59.5% (1 of 3 segments) (FY2025). At Nvidia: Compute & Networking: 89.6% (1 of 2 segments) (FY2026).

Those figures describe each business. They do not measure how spread out any investor's holdings are.

Questions people ask

What is the difference between a cash account and a margin account?
In a cash account, the investor pays the full amount for securities bought. In a margin account, the broker-dealer lends cash and uses the account as collateral.[S2]
Is a limit order guaranteed to go through?
No. The SEC says a limit order is not guaranteed to execute. It can only be filled if the stock's market price reaches the limit price.[S3]
How long does a US stock trade take to settle?
The standard cycle for most broker-dealer trades became T+1 on May 28, 2024. T+1 means one business day after the trade date.[S4]
Does diversification stop an investor from losing money?
No. The SEC says diversification can't guarantee that investments won't suffer if the market drops.[S1]

Sources

  1. S1Saving and Investing: A Roadmap to Your Financial Security Through Saving and Investing, SEC Pub. 009 (06/11) · U.S. Securities and Exchange Commission, Office of Investor Education and AdvocacyTier 1: company or exchange filing · Jun 1, 2011
  2. S2Investor Bulletin: Understanding Margin Accounts, SEC Pub. No. 156 (8/13) · U.S. Securities and Exchange Commission, Office of Investor Education and AdvocacyTier 1: company or exchange filing · Aug 1, 2013
  3. S3Investor Bulletin: Trading Basics, Understanding the Different Ways to Buy and Sell Stock, SEC Pub. No. 141 (3/11) · U.S. Securities and Exchange Commission, Office of Investor Education and AdvocacyTier 1: company or exchange filing · Mar 1, 2011
  4. S4SEC press release 2024-62 on the conversion to a T+1 standard settlement cycle, May 21, 2024 · U.S. Securities and Exchange CommissionTier 1: company or exchange filing · May 21, 2024
  5. S5Investor Bulletin: How Fees and Expenses Affect Your Investment Portfolio, SEC Pub. No. 164 (2/14) · U.S. Securities and Exchange Commission, Office of Investor Education and AdvocacyTier 1: company or exchange filing · Feb 1, 2014
  6. S6Trade Execution: What Every Investor Should Know, Jan 15, 2013 · U.S. Securities and Exchange CommissionTier 1: company or exchange filing · Jan 15, 2013
  7. S7Beginners' Guide to Asset Allocation, Diversification, and Rebalancing, Aug 27, 2009 · U.S. Securities and Exchange CommissionTier 1: company or exchange filing · Aug 27, 2009
  8. S8Stocks (investment products), accessed Nov 1, 2026 · FINRATier 1: company or exchange filing · Nov 1, 2026
  9. S9Risk (investing basics), accessed Nov 1, 2026 · FINRATier 1: company or exchange filing · Nov 1, 2026
  10. S1017 CFR 240.15c6-1(a), settlement cycle rule, accessed Nov 1, 2026 · Electronic Code of Federal RegulationsTier 1: company or exchange filing · Nov 1, 2026

Next lesson

Each week: one company explained in 5 points, picked by earnings date.

Free, no tips, unsubscribe anytime.

We'll send a confirmation email. See our privacy policy.

  • The basics

    What is volatility?

    Volatility is how much a price swings. How it is measured (standard deviation, beta, the VIX) and why it is not the same thing as risk.

    Basics · 3 min read

  • How to read

    How to read a 10-K in 10 minutes

    Where to find a 10-K on EDGAR, five sections this guide reads, and a walk through Amazon's fiscal 2025 10-K, filed Feb 6, 2026.

    Filings and announcements · 5 min read

  • How to read

    How to read a US earnings release: Nvidia's Q2 fiscal 2027

    A part-by-part walk through Nvidia's Q2 fiscal 2027 earnings release of Aug 26, 2026: GAAP and non-GAAP tables, outlook and the reconciliation.

    Reading results · 5 min read

All terms, guides, traps and cases on Learn

Disclaimer

For learning only. Cityfort is not a registered investment adviser or broker-dealer and does not recommend buying or selling any security. Prices shown are dated and may be out of date.

Investing in securities involves risk, including loss of capital. Before making any investment decision, do your own research and consider consulting a registered investment adviser or other qualified professional.

Cityfort, its owners and contributors may or may not hold securities of companies covered. Cityfort is not paid by any company it covers. Content is not an offer or solicitation to buy or sell any security, including in any initial public offering.

Read the positions policy
Read the full disclaimer

Cityfort publishes general educational content that explains how listed companies work. Cityfort is not registered with the US Securities and Exchange Commission or any state securities regulator as an investment adviser, and is not a broker-dealer or a member of FINRA. Cityfort does not provide investment, tax or legal advice, recommendations, ratings, price targets or any opinion on whether to buy, sell or hold any security. Nothing on the site is tailored to any person's circumstances.

All information is taken from publicly available sources, mainly company filings with the SEC, which are listed on each page with dates. We work to keep it accurate and correct errors publicly, but we do not guarantee that it is complete, accurate or up to date. Any market price or price-based ratio shown is dated, may be out of date by the time you read it, and is included only to explain concepts.

Statements by company management, including forward-looking statements and guidance, are reported as the company's statements, with their date and source; they are not our forecasts. Adjusted (non-GAAP) figures are the company's own measures and are shown next to the official (GAAP) figures.