TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is a moving average? Types, formula and examples for daily metrics

A moving average smooths a noisy series by averaging the last few values at each point. The formula, a 7-day example on daily sign-ups, simple vs exponential, choosing a window and common mistakes.

Lin Zhou Reviewed by Su He Also called rolling average Last updated Nov 4, 2026 Glossary

Quick answer

A moving average (rolling average) is a series of averages, each taken over a fixed number of the most recent values, used to smooth short-term noise and show the underlying trend in time-series data.

Formula: SMAₜ = (xₜ + xₜ₋₁ + … + xₜ₋ₙ₊₁) / n

What is a moving average?

A moving average replaces each point in a series with the average of the last n points. It smooths out day-to-day noise so the trend is easier to see:

SMAₜ = (xₜ + xₜ₋₁ + … + xₜ₋ₙ₊₁) / n

For daily web and product data, a 7-day window is the usual choice: every average contains exactly one Monday, one Tuesday and so on, so the weekly cycle cancels out.

A worked 7-day example

Daily sign-ups over two weeks (sample numbers), with the 7-day trailing average:

DaySign-ups7-day average
Mon120—
Tue132—
Wed128—
Thu125—
Fri110—
Sat70—
Sun65107.1
Mon126108.0
Tue140109.1
Wed135110.1
Thu131111.0
Fri116111.9
Sat72112.1
Sun69112.7

The raw series swings between 65 and 140 every week. The average shows the actual story: steady growth of about 5% from one week to the next.

Simple, weighted and exponential

TypeHow it weights valuesUse when
Simple (SMA)Equally over the windowYou want a clean, explainable trend
Weighted (WMA)Linearly more weight on recent valuesYou want less lag with a fixed window
Exponential (EMA)Each step: EMAₜ = α·xₜ + (1 − α)·EMAₜ₋₁You want fast reaction; good for monitoring

An EMA with α = 0.25 on the series above reacts to the Saturday dip within a day, while the 7-day SMA barely moves. That is useful for alerts, less so for reporting.

Choosing the window

  • 7 days for daily data with a weekly cycle.
  • 28 days (four full weeks) for a steadier monthly view without calendar-month noise.
  • 91 days (13 weeks) for quarterly trends.

Longer windows are smoother but lag more. A trailing window of n days lags by about (n − 1) / 2 days. A centred window (3 days before, 3 after) has no lag but cannot be computed for the last 3 days.

Common mistakes

  • Averaging rates. Daily conversion rates of 5%, 3%, 4% (on 200, 1,000 and 300 visitors) average 4.0%, but the pooled rate is (10 + 30 + 12) / 1,500 = 3.5%. Sum numerators and denominators over the window instead.
  • Reading the last point as "now". A 7-day trailing average still includes last week.
  • Smoothing over real events. A one-day outage becomes a gentle dip; keep the raw series visible.
  • Using it to hide noise from small samples. If daily counts are tiny, use a weekly grain instead.

In TapCub

TapCub charts show the raw daily (or hourly, weekly, monthly) values; switching the grain to weekly gives a similar smoothing effect without any calculation. To plot a true 7-day moving average, use the data report's table with a daily grain, export it, and compute the rolling sum of conversions and of visitors before dividing. For alerts that handle weekly cycles for you, the monitor forecast band and anomaly conditions compare against the same weekday. See also anomaly detection.

See also

Was this explanation clear?

We use your answers to fix and expand this page.

Lin Zhou

Product Experience Specialist

Writes about product experience, practical workflows, and growth, turning complex processes into clear steps for everyday decisions.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is a 7-day moving average?

For each day, the average of that day and the six days before it. Every average contains one of each weekday, so the weekly cycle disappears.

What is the difference between a simple and an exponential moving average?

A simple moving average weights the last n values equally. An exponential moving average gives recent values more weight and older ones less, so it reacts faster to changes.

Why does a moving average lag?

A trailing average includes older values, so when a trend turns, the average turns later. A 7-day trailing average lags by about 3 days.

Can I take a moving average of a conversion rate?

Average the numerators and denominators separately (7-day conversions ÷ 7-day visitors). Averaging daily rates gives low-traffic days too much weight.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics