# Sum of Products Calculator

URL: https://speedycalculator.com/calculators/math/sum-product/
Last updated: 2026-11-08

> The sum of products calculator multiplies matching items of two lists and adds the products: Σ aᵢ·bᵢ, the same as Excel's SUMPRODUCT or a dot product.

## Inputs

- Dataset A
- Dataset B

## Results

- Sum of products
- Sum of A
- Sum of B
- Weighted average of B (weights A)

## Formula

```
Sum of products = a₁b₁ + a₂b₂ + … + aₙbₙ
```

## Explanation

Sums of products are everywhere: the total cost of a shopping list (quantities × prices), weighted scores, expected values and the dot product of two vectors.

### How to use the Sum of Products Calculator

- **Dataset A**
- **Dataset B**

Results update as you type, and everything is calculated in your browser.

### How it works

The lists are paired item by item and only as many pairs as the shorter list are used.

### Inputs explained

FieldWhat to enterDataset AA list of numbers separated by commas, spaces or new linesDataset BA list of numbers separated by commas, spaces or new lines

### What each result means

- **Sum of products** = dot([Dataset A], [Dataset B])
- **Sum of A** = sum([Dataset A])
- **Sum of B** = sum([Dataset B])
- **Weighted average of B (weights A)** = dot([Dataset A], [Dataset B])÷sum([Dataset A])

## Worked example

Inputs: Dataset A: 3, 2, 5, 1; Dataset B: 1.20, 0.80, 2.50, 4.00.

Results: **Sum of products = 21.7**; Sum of A = 11; Sum of B = 8.5; Weighted average of B (weights A) = 1.97272727.

## Key terms

- **Dot product**: Σ aᵢbᵢ for two vectors a and b.

## FAQ

**What is SUMPRODUCT in Excel?**
It multiplies corresponding entries of ranges and adds the products, which is exactly this calculation.

**Is it the same as a dot product?**
Yes, for two vectors.

**What if the lists have different lengths?**
Only the matching pairs are used.

**How is it used for weighted averages?**
Weighted average = sum of products ÷ sum of weights.


## Sources

- [OpenStax: Prealgebra 2e](https://openstax.org/details/books/prealgebra-2e)
- [OpenStax: Contemporary Mathematics](https://openstax.org/details/books/contemporary-mathematics)
