What is a Moving Average Calculator?
The Moving Average Calculator is a free online tool that smooths a bumpy time series so the underlying trend shows through the day-to-day noise. Finance, statistics and forecasting students use it when to see whether sales, prices or temperatures are really rising or falling, instead of zig-zagging. Instead of averaging every sliding window by hand, which is slow and error-prone once the list passes a dozen values, you type your values in order in the first box, oldest first, and the window size k in the second box and the calculator returns the first and last smoothed values and how many smoothed values the window produces straight away.
The working idea is simple. the calculator slides a window of k values along your list and takes the mean of each window in turn With a window of 3, the first smoothed value is the mean of values 1, 2 and 3, the second is the mean of values 2, 3 and 4, and so on until the window reaches the end of the list. A list of n values gives n − k + 1 smoothed values. There is no sign-up and nothing to install: the page runs entirely in your browser, so your numbers never leave your device.
That matters because raw daily numbers jump around so much that the trend is invisible, while a moving average irons out the jumps and leaves the direction clear A moving average lags behind sudden changes — it is a smoothing tool, not a forecast — and the smoothed values near the start and end of the list are fewer than the raw values. The rest of this page walks through the formula, the input people get wrong most often, and a worked example with real numbers you can check by hand.
How a Moving Average Calculator works
At its core, the calculator applies each smoothed value is the mean of the last k values ending at that point. SMA at position t is (x[t−k+1] + ... + x[t]) ÷ k. The window is trailing by default, which means every smoothed value uses only values up to that point and never looks into the future. The formula box at the top of this page shows the same rule in symbols: SMA = mean of the last k values ending at each point.
The calculator adds the k values in each window and divides by k, then moves the window one step forward. Because each step reuses most of the previous window, the smoothed series changes slowly even when the raw series jumps. The window must be at least 2 and no larger than the number of values; a window of 1 would just return the original list, and a window larger than the list has nothing to average.
The arithmetic is exact — a plain mean of each window — so the only rounding is the two decimals shown on screen A average calculator can help you check the numbers that feed into this step, and it is worth doing that check before you trust an answer that looks surprising.
The the window size explained
The window size is the one choice that changes the answer, and people pick it without thinking. A small window follows every wiggle, so a window of 2 or 3 barely smooths anything. A large window irons out real turning points too, so a genuine rise can look like a flat line for several steps. There is no single right size: it depends on how noisy your data is and how fast the trend can change.
Start with a window of 3 or 5 and look at the result. If the smoothed line still jumps, raise the window; if it looks like a straight line that ignores obvious bends, lower it. For weekly data a window of 4 averages about a month, and for daily share prices traders commonly use 20 or 50 days. Keep the window the same when you compare two series, or the comparison is meaningless — a 3-day average and a 20-day average of the same data will always look different.
Count your values first: with n values and a window of k you should get n − k + 1 smoothed values, so if the count looks wrong, the window or the list is not what you think it is. A standard deviation calculator is a good cross-check when the input comes from a measurement or a table rather than from a textbook problem.
A worked example
Take the default list on this page: 10, 12, 14, 11, 13, 15, 12, 14, 16, 15, with a window of 3. The raw numbers jump up and down, but the trend is upward, and the moving average should show that.
The first window is 10, 12 and 14, whose mean is 12. The windows slide along — 12, 14, 11 gives 12.33, then 14, 11, 13 gives 12.67 — and the last window is 14, 16 and 15, whose mean is 15. Ten values with a window of 3 give 8 smoothed values.
The smoothed values run from 12 up to 15, a steady climb that the raw list hides behind its jumps. That is the whole point of the tool: the average of each window is calmer than any single value in it. You can check the first value by hand: (10 + 12 + 14) ÷ 3 = 36 ÷ 3 = 12, which matches the calculator exactly.
Where the Moving Average Calculator is used
In finance, traders watch the 20-day and 50-day moving averages of a share price: when the price crosses above its average, many read it as a sign the trend has turned upward, and when it crosses below, as a sign it has turned down.
In weather and climate work, a 30-day moving average of daily temperature removes the effect of one hot or cold day and shows whether the season is warming up or cooling down. A linear regression calculator often sits next to it in the same workflow, because the two answers answer different halves of the same question.
In shops and factories, a moving average of daily sales smooths out the weekday-weekend pattern so managers can see whether demand is really growing or just noisy.
It also helps to keep the units consistent from the first number to the last. Mixing units — metres with centimetres, degrees with radians, seconds with minutes — is the quietest way to get an answer that looks plausible and is wrong by a large factor. Write the unit next to every number you enter, and check the result's unit against the unit you expect before you use the answer anywhere else.
Moving Average Calculator vs Average Calculator
An average collapses a whole list into one number, while a moving average produces a new list — one smoothed value for each position of the window. The single average tells you where the data sits overall; the moving average tells you how it moves over time.
Use a plain average when you want one summary number, such as the mean temperature of a month. Use a moving average when the order of the values matters and you want to see the trend. The two answer different questions, and swapping them loses the information you actually need. The frequency distribution calculator covers the other side of the same problem, so the two tools complement each other rather than compete.
A moving average is really a sequence of small averages, so it inherits the average's weakness: one wild value pulls every window it sits in. Clean obvious errors out of the list before you smooth it.
Common mistakes with the Moving Average Calculator
The first mistake is reading the smoothed value as the value at that date. A trailing 3-day average for Friday is the mean of Wednesday, Thursday and Friday — it describes the last three days, not Friday alone, and it lags a sudden change by about half the window.
The second mistake is using a window that is too large for the data. With 10 values and a window of 9 you get only two smoothed values, which tells you almost nothing. Keep the window well below half the length of your list.
The third mistake is entering the values out of order. A moving average only makes sense for a series in time order; shuffled values give a meaningless smooth line, so check that the oldest value is first and the newest is last.
A last mistake is trusting the first answer without a rough check. Before you accept a result, estimate it by hand to one significant figure: if the calculator says 400 and your rough estimate says 40, something is off — usually a misplaced decimal point or a wrong unit. The calculator does the arithmetic; the judgement about whether the answer makes sense still belongs to you.
How to use this Moving Average Calculator
Open the page and enter your values in order in the first box, oldest first, and the window size k in the second box. The values must be in time order, oldest first. A column copied from a spreadsheet works as it is.
Read the last moving average as the current smoothed level of your series, and compare it with the first to see how much the level has moved over the whole period. Read the count as a check: it should equal the number of values minus the window plus one, so with 10 values and a window of 3 you should see 8.
Everything runs in your browser. No account, no upload, no data sent anywhere — your numbers never leave your device. If a result looks wrong, re-check the inputs first: a single mistyped number is the usual cause, and a average calculator will confirm the arithmetic.