Stack Math

Retirement and investing

Know your accounts before you pick one.

What a 401(k), IRA and Roth are, how they save you tax, and how savings grow over time. No experience needed.

By the Stack Math team · Updated

New to this? The short version

  • Saving for retirement means putting funds aside now so you have income when you stop working, often decades from now.
  • The funds go into a special retirement account. The government gives you a tax break for using one.
  • Inside the account, the funds are invested, usually in low-cost funds, so it can grow much more than in a savings account.
  • The earlier you start, the more time it has to grow. Small amounts in your 20s can beat big amounts in your 40s.

Not sure where to begin? If your job offers a 401(k) with a match, start there. If not, a Roth IRA is a common first account.

The main accounts, explained

Tap one to see what it is and how it works.

You open it yourself

What it is
An IRA where you pay tax first and never again on that money, as long as you follow the rules. Many people starting out pick this one.
How much you can put in
Up to $7,500 a year (2026), the same total as a traditional IRA. Age 50 and up can add $1,100 more. Higher earners can put in less, or nothing. The limit stays $7,500 in 2027.
Taxes, simply
You get no tax break now. In retirement, everything you take out, including all the growth, is tax-free. You can take back the funds you put in (not the growth) at any time without tax or penalty.
Often a good fit for
People who expect to earn more later, people early in their careers, and anyone who wants flexibility.
Watch out for
An income limit applies. In 2026 it starts at $153,000 and ends at $168,000 for single people, and $242,000 to $252,000 for couples who file taxes together (married filing jointly). In 2027 it is $158,000 to $173,000 and $250,000 to $260,000. To take the growth out tax-free, you must be 59½ and the account must have been open at least 5 years.
See the IRS limitsWhere to open one: investing sign-up offers

Amounts: IRS, 2026 retirement plan limits. Rules change and depend on your situation.

A common order to work through

Many guides suggest this order. Your situation may differ.

  1. 1
    Save a small cushion first

    Keep at least one month of bills in savings so one surprise does not end up on a credit card.

    Plan an emergency fund
  2. 2
    Get your full employer match

    If your job adds funds when you save in your 401(k), put in at least enough to get all of it. It is free compensation.

  3. 3
    Pay off high-interest debt

    Credit cards often charge 20% or more a year. That is usually more than investments earn, so paying them off is a great "return".

    Build a payoff plan
  4. 4
    Build a full emergency fund

    Three to six months of essential bills is a common goal.

    Set a savings goal
  5. 5
    Open an IRA or HSA

    A Roth or traditional IRA, and an HSA if your health plan allows one.

    Compare the accounts above
  6. 6
    Save more in your 401(k)

    Raise the percent you save a little each time you get a raise.

  7. 7
    Then a regular investing account

    For goals beyond what the accounts above allow.

See how saving adds up

Try your own numbers. The growth comes from compound growth: what you earn starts earning too.

$698,306

after 37 years. You would put in $182,600 yourself. The rest is growth.

Growth is never steady. If it averaged 3%: $339,976. If it averaged 9%: $1,556,278.

An example only, using one steady growth rate you pick. It leaves out taxes, fees and rising prices. Real investments go up and down each year and can lose principal. This is not a prediction.

Investing basics

The few ideas that matter most. Tap any underlined word for its meaning.

What investing is

Putting funds into things like stocks and bonds that tend to grow over many years. Prices go up and down along the way, and you can lose principal.

Index funds

An index fund buys a little of every company in a big list, such as the S&P 500, instead of betting on one. It is low cost and spread out.

One-fund option

A target-date fund is named after the year you plan to retire. It handles the mix for you and gets safer as that year gets closer.

Spread it out

Owning many investments (diversification) means one bad company cannot sink you.

Fees matter

Every fund charges a yearly fee, called the expense ratio. 1% sounds small, but over 30 years it can eat a big share of your growth. Low-cost index funds often charge under 0.1%.

When you need it

Money you need within about five years usually belongs in savings, not stocks. This is your time horizon.

For education only. This is not investment, tax or legal advice, and we do not recommend any specific investment. Investing has risk: you can lose principal, including what you put in. Talk to a licensed professional about your situation. Disclaimers

Keep going

Put it all in one free dashboardBudget, savings, debt, net worth and retirement, saved and connected.
Savings goalsAll guides