Wealthy Habitat

Library · Trading · Published 10/12/2026 · Read again by the automated checks 10/6/2026

Moving averages

A moving average blends closing prices into one line to see the drift beneath daily jumps, but it only confirms moves after they start.

In short

I once watched a neighbor check the price of a stock nine times before lunch, and by supper he was more tired than his price chart was. If you have ever felt that same jumpiness, a moving average may be the calmer view you were hoping for. It takes the last several closing prices and blends them into one steady line. You pick how many days it looks back, and a short window follows the price closely while a long window moves slowly. The Securities and Exchange Commission's investor education site, Investor.gov, describes a moving average as the average price over a set period, and that is all it claims to be. It shows where a price has been, and it says nothing sure about where the price will go. Nothing here tells you to buy, sell, or hold anything.

The whole of it

What it is

A friend of mine who farms used to say he trusted the season more than the day. One cold morning never told him the weather was turning. A whole week of cold did. A moving average works on that same idea. You take the closing price of a stock or fund over a set number of days, add those prices up, and divide by the number of days. Then the next day you drop the oldest price, add the newest, and do it again. The average moves along with the market, which is why it carries the name it does.

I once heard a banker say there are two kinds of moving average, and he was right. A simple moving average gives every day in the window the same weight. An exponential moving average gives more weight to recent days, so it reacts faster to fresh prices. Investor.gov describes both kinds. Neither is smarter than the other. They are two ways of smoothing out the bumps.

A neighbor of mine once asked why anyone bothers with these lines at all. A daily price chart is jagged. It jumps up and down from one close to the next. A moving average sands those jumps down so the drift underneath is easier for the eye to follow. That is all it does. It is a lens, not a crystal ball. Investor.gov calls such tools technical analysis, which means studying past prices and trading volume, and it notes that the method does not predict the future.

How it works

If you are holding a chart with a line running through it, you are looking at one price per day, joined up. The moving average adds a second line built from the averages. Where the price sits above the line, recent prices are higher than the average of the window. Where it sits below, they are lower.

Traders often watch two averages at once, one short and one long. When the short one climbs above the long one, some people call it a golden cross. When the short one drops below the long one, they call it a death cross. These are labels people use, and they describe what already happened. They do not promise what comes next.

Here is the part that trips people up. An average is always late. It is built from old prices, so it can only confirm a move after the move has started. A longer window smooths more but lags more. A shorter window lags less but jiggles more. No setting removes both problems. That is the honest cost of the tool.

The numbers, and where to find yours

A friend of mine once asked who sets the right window for an average, and I told him nobody does. The numbers here are your own, not the law's. The window is a choice made by whoever draws the chart. Fifty days and two hundred days are popular choices, though ten or thirty days work just as well. No government agency sets these figures, and no rule says one is correct. So there is no this year's official key, published on its official page figure for a moving average, because no law sets one.

If you are wondering where to get the prices, you have probably already seen them. Closing prices appear in a brokerage account, on the website of the exchange where the stock trades, and on charting pages. Many charting tools let a user add a moving average and type in the window length. To check a tool, pull the closing prices and do the arithmetic by hand once. It builds trust in what the screen shows.

If you hold shares in a taxable account, you have probably wondered how taxes fit in. Gains and losses carry tax rules of their own, separate from any chart. The IRS explains them in Publication 550, Investment Income and Expenses. A moving average says nothing about a tax bill, so keep the two questions apart.

A worked example

Consider a woman named Marisol who follows a fund and wants a five day simple moving average. She writes down five closing prices: $40, $42, $41, $43, and $44. She adds them up. $40 plus $42 is $82. Add $41 and the total is $123. Add $43 and it is $166. Add $44 and it is $210. She divides $210 by 5 and gets $42. Her five day average is $42.

The next day the fund closes at $46. Marisol drops the oldest price, which was $40, and adds the new one. Her five prices are now $42, $41, $43, $44, and $46. $42 plus $41 is $83. Add $43 and it is $126. Add $44 and it is $170. Add $46 and it is $216. She divides $216 by 5 and gets $43.20. Her average moved from $42 to $43.20 while the price jumped from $44 to $46.

Look at that gap. The price is $46 and the average sits at $43.20. The average trails behind, just as we said it would. Marisol sees the price above her line. That tells her recent days ran higher than the five day average. It does not tell her tomorrow. Nice work, Marisol. She checked every step and can show it to anyone.

Where it goes wrong

I have seen good people get hurt by a line on a screen, so let me speak plainly here. The first trouble is lag. By the time a crossover appears, part of the move may be over. A person can end up reacting to old news and feeling clever about it.

A man I know once sat through a whole summer of a price that went nowhere, and it taught him the second trouble. That trouble is the sideways market. When a price drifts up and down without a clear direction, it crosses its average again and again. Each crossing looks like a signal, yet none of them lead anywhere. Traders call this whipsaw. It can wear down patience and a bank balance together.

The third trouble is the fit. It is easy to try many window lengths until one seems to have called the past perfectly. That fit can fall apart on new prices, because it was tuned to a story that already ended. Be careful of that. It flatters, and flattery is a poor guide.

A friend of mine once added up what his small trades had cost him over a year, and he went quiet for a minute. That is the last trouble, and it is cost. Every trade can carry commissions, spreads, and taxes. A strategy that looks fine on a chart may look different once the cost of acting on it is subtracted. A broker's fee schedule shows the commissions, and IRS Publication 550 shows how gains are taxed. Both are worth reading before leaning on any signal.

Questions to answer before you leave this page

Can you say in your own words what a five day average is made of, and could you rebuild Marisol's $42 and $43.20 with a pencil? Do you know which window length you would choose, and can you explain why you chose it rather than borrowing it from someone else? Have you looked at a chart where the price kept crossing its average in a flat market, and do you see how easily that could mislead a person? What would a trade cost in fees and taxes, and have you subtracted that before trusting any signal? And when the line and your gut disagree, do you know which of the two you would rather learn from?

Now work it with your own numbers. Compound growth, what money does when it is left alone · Fee comparison, what one percent a year costs over a working life. Each shows the formula it used.

Learn it in steps. The course called Your money, understood begins with Money you can lose, money you cannot: two short paragraphs, one number of your own, and a check, about five minutes on the page. No account needed.

Rehearse it. The practice game plays thirty real years of markets with your own numbers, falls included, so the hard year is one you have already lived.

Sources

investor.gov · read 10/12/2026
irs.gov · read 10/12/2026

Each source below is an official page that was fetched on the date shown, and the sentence quoted from it was found there. Figures from the table of yearly figures carry their own source and date. When a quoted sentence can no longer be found, the guide goes back to the writer.

Related

Reading a chart without fooling yourself
Market timing and its record
Recency bias
Herding

See something wrong on this page? Write to admin@wealthyhabitat.com and say which sentence.

Was this useful? Counted, never signed.

Ask about this guide

A model reads this page and answers from it. It will say when the answer is not on the page. Education, not personalized advice.

Written by the site's growth engine and checked by its gates: voice, law and ethics, facts, arithmetic, and sources. Not yet read by a human editor, and a correction goes to the address above. Rules and dollar limits change every year; figures come from the table of yearly figures with their source and date.