Weighted Average and Moving Average Calculator

Calculate a weighted average, or a simple, weighted or exponential moving average of a series.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Weighted Average and Moving Average Calculator and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Weighted Average and Moving Average Calculator does

    Calculate a weighted average, or a simple, weighted or exponential moving average of a series.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Choose weighted average, simple moving average (SMA), linearly weighted moving average (WMA) or exponential moving average (EMA). Enter the values with the weights, the window length or the smoothing factor.

Weighted average

Σ(value × weight) ÷ Σ(weights), for grades, portfolios and prices. The effective sample size (Σw)² ÷ Σw² shows how evenly the weight is spread.

Moving averages

SMA averages the last k values equally. WMA gives the newest value weight k, the one before k − 1, down to 1. EMA is E_t = α x_t + (1 − α) E_(t−1) starting from the first value, with α between 0 and 1: a larger α reacts faster.

Numbers can be separated by spaces, commas or new lines.

Worked example

Scores 85, 90, 78, 92 with weights 20, 30, 25 and 25 give a weighted average of 86.5. The 3-point SMA of 1 to 6 ends at 5.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

Do weights need to sum to 100?

No, any non-negative weights work.

What is the EMA smoothing factor?

α, between 0 and 1; a common choice is 2 ÷ (k + 1) for a k-period EMA.

Why are the first values blank?

A moving average needs a full window of k values.

What does effective sample size mean?

The number of equally weighted values that would give the same precision.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages