Skip to content
Tutorials Center
My learning

Topics

Lesson 25 of 36 ยท Investing Basics

Stocks, Bonds and Funds

Learn what stocks, bonds, index funds and ETFs are, how each earns money, what risks they carry, and how a fund combines many holdings.

When people say "investing", they usually mean buying one of a few basic building blocks. Each has a different way of earning money and a different kind of risk. This lesson explains the four most common ones: stocks, bonds, funds and cash-like savings. The aim is to help you read about investments without confusion, not to tell you what to buy.

This is education, not financial advice. Products, taxes and regulations differ by country, and past performance does not predict future results.

Stocks (shares)

A stock (or share) is a small piece of ownership in a company. If the company grows and earns profits, the share price may rise, and you may also receive dividends, which are payments of part of the profit to shareholders. If the company struggles or fails, the price can fall, and in the worst case shares become worthless.

Stocks have no promised return. They have historically offered higher average returns than bonds or savings over long periods, but with larger and more frequent drops.

Your total return from a share has two parts:

Text
total return = price change + dividends

Bonds

A bond is a loan you make to a government or a company. In return they promise to pay you regular interest (called the coupon) and to return the amount (the face value) on a fixed date (the maturity). Bonds are generally less volatile than stocks, but they still carry risks:

  • Credit risk: the issuer may fail to pay. Stable governments are usually lower risk than weak companies.
  • Interest-rate risk: when market rates rise, existing bonds with lower coupons lose market value.
  • Inflation risk: fixed payments buy less if prices rise.

Funds and ETFs

Picking single stocks is hard and risky. A fund pools the money of many investors and buys a large collection of stocks, bonds or both. You own a share of the fund, so with a small amount of money you hold hundreds or thousands of companies.

  • Mutual fund: bought and sold at a price calculated once a day.
  • ETF (exchange-traded fund): trades on a stock exchange during the day, like a share.
  • Index fund: a fund (mutual or ETF) that simply copies a market index, such as a broad stock market index, instead of trying to beat it. Index funds usually have low fees.
  • Actively managed fund: managers pick investments trying to beat the market, usually at higher fees.

Funds charge a yearly fee, often shown as the expense ratio (for example 0.20% of the amount invested per year). You will see in compound growth and fees why small fees matter a lot over decades.

flowchart TD
    A["Many investors<br/>put money in"] --> B["Fund"]
    B --> C["Stocks"]
    B --> D["Bonds"]
    B --> E["Other assets"]
    C --> F["Gains and income<br/>shared by investors"]
    D --> F
    E --> F

A fund pools money from many investors and spreads it across many holdings.

Comparing the building blocks

Type How it earns Main risk Typical role
Savings / cash Interest Inflation Emergency money, short goals
Bonds Coupons and repayment Credit, interest rate Steadier part of a portfolio
Stocks Price growth and dividends Large price drops Long-term growth
Funds / ETFs A bundle of the above Same as what they hold, plus fees Easy diversification

Calculating a stock's return

The first program is a calculator that applies the total-return formula. The prices are invented.

Python Total return of a share

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Company C never changed price, but the dividends still gave a return. Company B shows that a share can lose value even when it pays a small dividend.

Bond coupons and price moves

The second program shows a simplified bond. It is a stand-in that illustrates the idea: the price of an existing bond is the present value of its remaining payments, discounted at the current market rate. Real bond pricing has more detail (accrued interest, day counts).

Python Why bond prices fall when rates rise

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

When the market rate equals the coupon, the bond is worth its face value. When market rates are higher than 4%, a bond paying only 4% is less attractive, so its price falls. If you hold it to maturity and the issuer pays, you still get the face value back, which is why interest-rate risk matters most if you must sell early.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. A share represents

    Shares are ownership stakes; bonds are loans.
  2. 2. A bond's coupon is

    The coupon is the interest the issuer pays on the bond.
  3. 3. What does an index fund do?

    An index fund tracks an index rather than trying to outperform it.
  4. 4. When market interest rates rise, the price of an existing lower-coupon bond usually

    New bonds pay more, so older lower-paying bonds become less attractive and their price falls.

Summary

  • Stocks are ownership with no promised return; bonds are loans with promised payments.
  • Funds and ETFs bundle many holdings, giving easy diversification at a fee.
  • Index funds copy a market and usually cost less than actively managed funds.
  • Each type has its own risks: price falls, credit risk, interest-rate risk and inflation.
  • Fees reduce your return every year.

Next: Diversification and Portfolios