The two ways stocks generate money for you

You make money from stocks in two ways: capital gains when you sell a stock for more than you paid for it, and dividends when a company pays shareholders a portion of its profits. Most people focus on capital gains — buying low and selling high — but dividends provide income while you hold the stock. Both can happen at the same time, and both are taxed differently depending on how long you hold the stock and your income level.

The catch is that stocks can also lose value. If you buy a stock at $50 and it drops to $30, you have a capital loss. You do not have to sell at a loss, but if you do, you lock in that loss. If you hold it hoping it recovers, you are betting on a future gain that may never come. This is why understanding how these two income sources work matters before you put money in.

Key Takeaways

  • Capital gains happen when you sell a stock for more than you paid, and the profit is taxed at a lower rate if you hold the stock for over a year.
  • Dividends are payments companies make to shareholders, usually quarterly, and come from company profits rather than stock price movement.
  • Not all stocks pay dividends; growth-focused companies often reinvest profits instead of paying shareholders.
  • Your actual return depends on the stock price when you sell, the dividends you receive, and how much you paid in taxes and trading fees.

Capital gains: selling for a profit

A capital gain is the difference between what you paid for a stock and what you sell it for. If you buy 10 shares of a company at $50 per share ($500 total) and sell them at $75 per share ($750 total), your capital gain is $250. That $250 is your profit before taxes and any trading fees your broker charges.

The tax you owe on that gain depends on how long you held the stock. If you held it for one year or less, it is taxed as short-term capital gains, which means it is taxed at your regular income tax rate — potentially 22%, 24%, 32%, 35%, or 37% depending on your income. If you held it for more than one year, it is taxed as long-term capital gains, which has lower rates: 0%, 15%, or 20% depending on your income. This tax difference is why many investors hold stocks longer rather than trading frequently.

The risk is that the stock price can fall instead of rise. If you buy at $50 and sell at $40, you have a capital loss of $10 per share. You can use capital losses to offset capital gains in the same year, which reduces your tax bill. If your losses exceed your gains, you can deduct up to $3,000 of the loss against other income in that year, and carry forward any remaining loss to future years.

Dividends: income while you hold the stock

A dividend is a payment a company makes to its shareholders, usually from profits. Not all companies pay dividends — many younger or faster-growing companies reinvest all profits back into the business. Mature, established companies often pay dividends because they generate steady cash and do not need to spend everything on growth.

Dividends are usually paid quarterly (four times a year), though some companies pay monthly or annually. If a company pays a dividend of $2 per share per year and you own 100 shares, you receive $200 per year in dividend income, whether the stock price goes up, down, or stays flat. You receive this payment as long as you own the stock on the ex-dividend date — the date the company sets as the cutoff for who gets paid.

Dividends are taxed differently depending on the type. may have access to dividends from U.S. companies and certain foreign companies are taxed at the same long-term capital gains rates (0%, 15%, or 20%). Non-may have access to dividends are taxed as ordinary income at your regular tax rate. Most dividends from large U.S. companies are may have access to, but you should check with your broker or the company to be sure.

How total return combines both sources

Your actual profit from a stock investment is the combination of capital gains and dividends, minus taxes and fees. If you buy a stock at $100, it rises to $120, and you receive $5 in dividends along the way, your total gain before taxes is $25. After you pay taxes on the $20 capital gain and the $5 dividend, and after your broker takes any trading fees, your net profit is smaller.

This is why the stock price alone does not tell you how much money you made. A stock that rises 10% but pays no dividend is not necessarily better than a stock that rises 5% and pays a 4% dividend. The second one might give you more total return, especially if you hold it long enough to get the lower long-term capital gains tax rate.

Reinvesting dividends — using the dividend payment to buy more shares of the same stock — can increase your total return over time because you own more shares earning future dividends. Many brokers offer automatic dividend reinvestment, sometimes called DRIP (dividend reinvestment plan), which does this without you having to do anything.

Why stock prices move and what that means for your money

Stock prices change based on what investors think the company is worth. If a company reports strong earnings, investors may bid the price up. If the company misses expectations or faces bad news, investors may sell, pushing the price down. This happens every trading day, and the price can swing significantly over weeks or months.

The price movement is where most of the risk lives. You cannot control whether a company's stock goes up or down, and you cannot predict it reliably. You can research the company, look at its financial statements, and read analyst reports, but none of that guarantees a profit. This is why financial advisors often recommend holding a mix of different stocks (or funds containing many stocks) rather than betting on a few individual companies.

If you need the money soon, price swings matter more. If you can leave the money invested for years, short-term price drops matter less because you have time for the price to recover. This is why time horizon — how long you plan to hold the investment — is one of the most important decisions you make before you buy.

The role of fees and taxes in your actual profit

Two things eat into your gains: trading fees and taxes. Trading fees are what your broker charges to buy or sell a stock. Many brokers now charge zero commission per trade, but some still charge a flat fee or a percentage. If you buy and sell frequently, these fees add up.

Taxes are usually larger. If you make a $1,000 capital gain and are in the 24% tax bracket for short-term gains, you owe $240 in federal tax (plus any state tax). If you hold the stock over a year and pay 15% long-term capital gains tax, you owe $150 — a $90 difference on the same gain. This is why holding period matters financially, not just philosophically.

Dividend taxes also reduce your take-home. A $500 dividend payment taxed at 24% costs you $120, leaving you $380. Over many years and many stocks, these tax costs compound. Some investors use tax-advantaged accounts like 401(k)s or IRAs to reduce or defer these taxes, which is worth exploring if you have access to them.

Frequently Asked Questions

Can you make money if a stock price stays flat?

Yes, if the stock pays dividends. You receive the dividend payment regardless of whether the price moves. However, if a stock pays no dividend and the price does not rise, you make no money — you just have the same amount of value you started with.

What happens to your money if a company goes bankrupt?

You can lose your entire investment. If a company fails, the stock typically becomes worthless. Stockholders are last in line to receive anything — creditors and bondholders get paid first. This is why diversification (owning many stocks, not just one or two) matters.

Do you have to sell a stock to make money?

You have to sell to realize a capital gain, but you can receive dividends without selling. If you hold a dividend-paying stock for years and never sell, you still collect the dividend payments. The capital gain only becomes real money when you sell.

How do you know if a stock will go up?

You cannot know for certain. Even professional investors and analysts get it wrong regularly. You can research the company's finances, management, and industry, but past performance does not predict future results. This is why many people use index funds or diversified portfolios instead of picking individual stocks.

What is the difference between a stock and a mutual fund for making money?

A stock is one company; a mutual fund holds many stocks. With a stock, your return depends entirely on that one company. With a fund, your return is the average of all the companies inside it, which spreads the risk. Funds also charge fees, but they reduce the chance that one bad company wipes out your investment.