How to Build a Price Benchmark Report: From Data to Table

Published:

11 minute read

Enver Kaya
Written by: Enver Kaya
A semi-transparent median plane splits a grid of price tags in two; a blue YOU tag sits above the plane

A price benchmark report is a summary table that compares collected competitor prices for the same product under the same conditions. For each product you work out the spread of competitor prices. Your price is then placed against the middle of that spread. The trap is the comparison basis: one price listed without VAT, or a shipping fee left out, shifts the index by several points on its own. This post covers normalization, median and index math, weekly change and table layout.

Data that goes into the report

The report starts once product matching is done. We assume you have rows of week, sku, seller, price. How that data is collected and matched is covered in our post on tracking competitor prices.

Before any math, four kinds of rows are filtered out:

  • Unverified match. A wrong variant is the price of the wrong product. This row breaks the index quietly.
  • Out-of-stock competitor. The price of a product nobody can buy does not bind you.
  • Empty price. It is not written as zero. It stays empty.
  • Second observation in the same week. If you saw the same seller twice in a week, reduce it to one value.

Convert multipacks (3-packs, 6-packs) to a unit price. Cleanup steps such as currency symbols and thousands separators in the price text are in How to Clean Scraped Data with Pandas. When prices change by location, every observation has to come from the same country. Collecting Türkiye prices through a Residential Proxy with a Türkiye exit ties every row to the same condition.

VAT and shipping normalization

The comparison is made on the amount the customer pays: the price with VAT, plus shipping. Pages that sell to consumers usually show prices with VAT included. Business sales pages and some foreign stores may list prices without VAT. Keep this in one column per seller.

For shipping, record the amount paid when the product goes into the cart on its own. On a low-priced product the free-shipping threshold decides the gap. The table shows the same week of the SOCKET-02 product from our sample data (prices in Turkish lira) on two bases:

Comparison basisCompetitor medianYour priceIndex
Listed price419449107.2
With VAT and shipping420478.9114.0

Competitor C's 350 lira before VAT looked like the cheapest offer on the listed-price basis and became 420 once VAT was added. Your own 29.90 lira shipping fee only shows up in the second row. A product that looks 7% more expensive on the price tag is 14% more expensive in what the customer pays.

If there are several currencies, convert at a single rate and write the rate's date under the report.

Median and quartiles

The middle of competitor prices is measured with the median, because the median barely moves when one value is wrong. In our sample data, competitor D's price arrived as 14.79 one week after a decimal slip. In that week the index came out at 124.5 against the mean and stayed at 100.7 against the median.

Quartiles tell you how wide the spread is. Q1 is the boundary of the cheapest quarter, Q3 that of the most expensive quarter. If your price is between Q1 and Q3, you are in the middle of the market. Above Q3, you are more expensive than three quarters of your competitors.

You can show the lowest price in a separate column, but do not base the index on it. The lowest price is one seller's one promotion. pandas quantile uses linear interpolation by default. With four competitors, as in our example, Q1 and Q3 are not a real price but a point between two prices. Keep that in mind when you read the table.

Price index

The price index is your delivered price divided by the competitor median, times 100. 100 means the same price, 105 means 5% more expensive, 95 means 5% cheaper. The index is calculated per product.

For the category summary, take the median of the product indexes. If best sellers matter more, use an average weighted by units sold. Whichever method you choose, write it under the table.

With few competitors the index misleads. An index based on a single competitor shows that competitor's promotion as your position. In the example we set a minimum of three competitors. Products below that get an empty index.

IndexReading
Below 95Clearly below the competitor median
95-105Middle of the market
Above 105Clearly more expensive

These thresholds are examples. Pick them based on your own margin and category.

Weekly change

Weekly change is measured only over sellers observed in both weeks. If you divide the two weeks' medians directly, the set of sellers changes and you see movement that is not there.

In our sample data, the competitor median for HEADPHONES-01 rose from 1,488 to 1,518.5, and the plain calculation showed a 2.0% increase. Yet no competitor had raised a price: A and E had cut theirs. What pushed the median up was D's observation that week being dropped as an outlier. The median of the changes of the four matched sellers was a 1.6% decrease.

Official price indexes work on the same logic: the same item is compared across two periods. Define the week in a fixed way, for example as the ISO week number. Run collection on the same day and at the same hour every week.

Missing data and outliers

A missing price stays empty and is not filled with an estimate. If you carry the previous week's price forward, the change shows as zero and the report shows a standstill that did not happen. Instead, add a coverage column to each product: how many competitors were observed that week.

In the example, in the second week of SOCKET-02 three of five competitors were out of stock and one had an empty price. One competitor was left and the index became "insufficient". That is a finding too, and it goes into the report.

For outliers, the 1.5 × IQR rule is a common starting point. IQR is the difference between Q3 and Q1. A price more than 1.5 IQR below Q1 or more than 1.5 IQR above Q3 gets flagged. Flag it but do not delete it, because a price that looks like an outlier is sometimes a real promotion.

Attach the outlier list to the report. Typical causes:

  • Mixed-up decimal separator: 1.299 is parsed as 1.299.
  • A pack price instead of a unit price.
  • A wrong variant or a reused product URL.

With five competitors the IQR rule is weak. Add a ratio check as well: if a competitor's price is below one fifth of your price or above five times it, check the row by hand.

A sample report in pandas

The script below applies every step in order. The data is a handwritten sample, not real store prices. The file has 24 rows for two products, five competitors and two weeks. The first rows look like this:

text
week,sku,seller,price,vat_included,shipping,in_stock
2026-W48,HEADPHONES-01,us,1499,True,0,True
2026-W48,HEADPHONES-01,A,1449,True,0,True
2026-W48,HEADPHONES-01,B,1529,True,39.9,True
python
import pandas as pd

VAT = 0.20  # sample rate; use the rate for your product group
MIN_RIVALS = 3
PREV, LAST = "2026-W48", "2026-W49"

df = pd.read_csv("prices.csv")

# 1. Cleanup: drop out-of-stock rows, empty prices and repeat observations in the same week
df = df[df["in_stock"] & df["price"].notna()]
df = df.drop_duplicates(["week", "sku", "seller"], keep="last").copy()

# 2. Normalization: delivered price with VAT and shipping included
with_vat = df["price"].where(df["vat_included"], df["price"] * (1 + VAT))
df["delivered"] = (with_vat + df["shipping"]).round(2)

# 3. Outliers: 1.5 x IQR rule for each week and product
rivals = df[df["seller"] != "us"].copy()
g = rivals.groupby(["week", "sku"])["delivered"]
q1 = g.transform("quantile", 0.25)
q3 = g.transform("quantile", 0.75)
iqr = q3 - q1
rivals["outlier"] = ~rivals["delivered"].between(q1 - 1.5 * iqr, q3 + 1.5 * iqr)
print(rivals.loc[rivals["outlier"], ["week", "sku", "seller", "delivered"]])
clean = rivals[~rivals["outlier"]]

# 4. Last week: competitor spread and price index
last = clean[clean["week"] == LAST]
report = last.groupby("sku")["delivered"].agg(
    rivals="count",
    q1=lambda s: s.quantile(0.25),
    median="median",
    q3=lambda s: s.quantile(0.75),
)
us = df[(df["seller"] == "us") & (df["week"] == LAST)]
report["us"] = us.set_index("sku")["delivered"]
report["index"] = report["us"] / report["median"] * 100
report["index"] = report["index"].mask(report["rivals"] < MIN_RIVALS)

# 5. Weekly change: only sellers observed in both weeks
p = clean.pivot_table(index=["sku", "seller"], columns="week", values="delivered")
p = p.dropna()
p["chg"] = (p[LAST] / p[PREV] - 1) * 100
matched = p.groupby(level="sku")["chg"].agg(["count", "median"])
report["matched"] = matched["count"]
report["change_%"] = matched["median"].mask(matched["count"] < MIN_RIVALS)

print(report.sort_values("index", ascending=False).round(1).to_string())

Output:

text
        week            sku  seller  delivered
10  2026-W49  HEADPHONES-01       D      14.79
               rivals      q1  median      q3      us  index  matched  change_%
sku
HEADPHONES-01       4  1465.8  1518.5  1554.0  1499.0   98.7        4      -1.6
SOCKET-02           1   458.9   458.9   458.9   478.9    NaN        1       NaN

The first table is the outlier list: D's 14.79 was caught. HEADPHONES-01 sits in the middle of the market with an index of 98.7. SOCKET-02 has one competitor left, so its index and change are empty. The drop_duplicates line matters. pivot_table silently averages two values that land in the same cell.

Table layout

The report table is ordered so the reader spots the products where you are expensive at first glance. Use this column order:

ColumnContent
ProductSKU and short name
Your priceDelivered price
Competitor Q1, median, Q3Spread
IndexYour price / median × 100
Competitor countCoverage
Weekly changeOver matched sellers

Sort the rows by index from high to low. Put the category summary above the table and write figures with one decimal. Write "insufficient" for an empty index, not 0. If you use color, color only the index column.

Add a method note under the table: comparison basis, collection date and time, minimum competitor count, outlier rule and exchange rate. Without the note, two months of reports cannot be compared.

Troubleshooting

Most odd figures in a report come down to a few known causes:

  • Every index is high by the same ratio. Prices with and without VAT are mixed. At a 20% rate the deviation is about 1.2 times.
  • The change is large, but no competitor changed a price. The set of sellers has changed. Calculate change over matched sellers.
  • Q1, median and Q3 are the same. The product has a single competitor. Check the coverage column.
  • An index above 1,000 or below 10. A decimal or thousands separator was parsed wrongly.
  • Odd in-between values with extra decimals. Two observations of the same seller were averaged.

How we tested

We ran the script on 3 December 2026 with Python 3.13.17 and pandas 3.1.2. The data was a handwritten 24-row sample CSV file: two products, five competitors, two weeks. Every figure in this post comes from that file. We calculated the mean-versus-median comparison and the plain median change from the same data on a separate line.

The bottom line

Move prices to a delivered basis first, measure the middle with the median, and calculate change only over matched sellers. Above all, do not mix prices with and without VAT in the same column; that mistake breaks the index more than any other. For the collection side of the data, see our price monitoring solution.

Sources

Frequently asked questions

How is a price index calculated?

Divide your delivered price by the competitor median and multiply by 100. The delivered price is the amount with VAT and shipping included. A result of 100 means you are priced at the middle of your competitors. 110 means 10% more expensive, 90 means 10% cheaper. Calculate the index per product, and for the category summary use the median of product indexes or a sales-weighted average.

Should a benchmark report use the mean or the median?

The median. The mean is pulled hard by a single wrong price. In our sample data, one price with a slipped decimal pushed the index to 124.5 against the mean. In the same week the index against the median stayed at 100.7. Use the mean only for a category summary weighted by units sold, and stay with the median at product level.

How do prices without VAT go into the report?

By multiplying them by the VAT rate. For each seller, keep whether the price includes VAT in a separate column. Convert the ones without VAT to the VAT-inclusive amount with the rate for that product group, then add shipping. Choose the rate by product group, since one fixed rate may not fit every product. After the conversion every row is on the same basis.

How many competitors make an index reliable?

At least three competitors is a good floor. An index based on a single competitor shows that seller's promotion as your market position. For products below three, leave the index empty and write "insufficient". The coverage column tells the reader how many observations a figure rests on and makes it easy to set apart low-coverage rows.

Which price goes in for products with a shipping threshold?

The amount paid when the product goes into the cart on its own. The free-shipping threshold depends on the cart total and is often not reached in a single-item purchase. So add the shipping fee to the price for products below the threshold. For products above it, shipping is zero. Write the threshold in the method note; if the threshold changes, the comparison changes too.

How often should a benchmark report be prepared?

As often as prices change; for most catalogs, once a week. For electronics and during promotion periods a daily report can make sense. Whatever frequency you choose, collect on the same day and at the same hour in every period. Otherwise weekly change measures the difference in collection time, not price movement.

Ask ChatGPTAsk Claude