Property tax deadlines leave fingerprints in public sales records. When a relief is about to end, buyers rush to complete and the completion dates in HM Land Registry's Price Paid Data bunch up just before the cut-off. This post shows how to find those spikes with about 20 lines of pandas, and what they look like in three postcode districts, CR3, CR5 and CR8 (Caterham, Coulsdon and Purley). The code works on any area you like, and the numbers come from the joined sale and certificate data held on Door Number, read on 29 November 2026.

The data

Price Paid Data is free under the Open Government Licence v3.0. It records every residential sale in England and Wales with a completion date, a price, a postcode and a property type. The yearly CSV files are linked from the GOV.UK Price Paid Data page. They have no header row, so the column names need supplying. Download one file per year, or the complete file if you have disk space for it, and put them in one folder.

The columns, in order, are: transaction id, price, date, postcode, property type (D, S, T, F or O), new build flag, tenure, house number or name, flat number, street, locality, town, district, county, price paid category (A or B) and record status.

Load only what you need

The complete file has tens of millions of rows, so read only the five columns you use:

import pandas as pd cols = ["tid", "price", "date", "postcode", "ptype", "new", "tenure", "paon", "saon", "street", "locality", "town", "district", "county", "category", "status"] df = pd.read_csv( "pp-2025.csv", # repeat for each year and concat header=None, names=cols, usecols=["price", "date", "postcode", "ptype", "category"], parse_dates=["date"], ) 

If you have several yearly files, load each one the same way and join them with pd.concat. Reading five columns instead of sixteen cuts memory use a lot.

Pick your area from the postcode

The postcode district (the "outcode") is the part before the space. A small regular expression pulls it out, and you can then filter on any list of districts:

df["outcode"] = df["postcode"].str.extract(r"^([A-Z]{1,2}[0-9][A-Z0-9]?)\s") local = df[ df["outcode"].isin(["CR3", "CR5", "CR8"]) & (df["category"] == "A") # standard sales only & (df["price"] >= 30_000) # drop part-shares and odd transfers ] 

Category A keeps ordinary market sales. Category B covers repossessions, buy-to-let portfolio purchases and other additional records, which you usually want to leave out when you ask a question about buyer behaviour. The price floor removes a small number of non-market transfers.

Count completions by month

monthly = local.groupby(local["date"].dt.to_period("M")).size().sort_index() print(monthly.loc["2021-01":"2021-12"]) 

That gives one number per month. In the Door Number data for these three districts, the 2021 figures look like this: January 75, February 88, March 150, April 71, May 67, June 209, July 36, August 56, September 103, October 58, November 51 and December 76. The average month in 2019 was about 60. Three months stand out: March, June and September.

Those are the deadlines of the English stamp duty holiday. The nil-rate band on residential purchases was raised to £500,000 from 8 July 2020, and was due to end on 31 March 2021. It was extended to 30 June 2021 at the same level, then stepped down to £250,000 until 30 September 2021, and returned to £125,000 on 1 October 2021. Each date matches a spike: 150 completions in March, 209 in June and 103 in September, and a trough of 36 in July, right after the big June rush.

Detect spikes automatically

You do not have to find these by eye. Compare each month with the median of the previous six months and flag the months that are far above it:

baseline = monthly.rolling(6).median().shift(1) ratio = (monthly / baseline).dropna() spikes = ratio[ratio >= 1.6].round(2) print(spikes) 

The shift(1) matters. Without it, each month is compared with a window that includes itself, which dilutes the signal. A ratio of 1.6 or above means a month ran 60% over its recent median. You can lower it to 1.4 for a more sensitive search, at the cost of more false alarms from ordinary seasonal swings. In longer-run Door Number data (2012 to 2025, leaving out 2020 and 2021), each month holds between about 6.6% and 9.5% of the annual total, so seasonality is weak there and a fixed threshold works well. Your area may be more seasonal.

The 2025 change shows up too

The temporary £250,000 threshold introduced in September 2022 ended on 31 March 2025, when the nil-rate band went back to £125,000. The same code finds it. March 2025 had 96 completions in these districts, against 47 in December 2024, 40 in January and 48 in February. After the deadline, April had 20 and May had 21. That is a doubling before the cut-off and a hole of about a fifth of the March figure afterwards.

print(monthly.loc["2024-12":"2025-06"]) 

Plot it

A bar chart makes the three 2021 spikes obvious at a glance, and it takes one line once the monthly series exists:

import matplotlib.pyplot as plt ax = monthly.loc["2020-07":"2022-01"].plot(kind="bar", figsize=(10, 4)) ax.set_ylabel("Completions per month") ax.set_title("Completions in CR3, CR5 and CR8 around the stamp duty holiday") plt.tight_layout() plt.show() 

Label the deadlines by hand if you are sharing the chart, since a reader who does not know the dates will not know why June is tall.

Which kinds of home reacted most?

The property type column lets you split the spike by type. A pivot table gives completions per year for each of D (detached), S (semi), T (terraced) and F (flat or maisonette):

by_type = ( local.assign(year=local["date"].dt.year) .pivot_table(index="year", columns="ptype", values="price", aggfunc="size", fill_value=0) ) print(by_type) 

In the Door Number data, flats went from 257 sales in 2019 to 417 in 2021, a rise of 62%, while semis rose by 21%, terraced houses by 54% and detached by 41%. In 2025 there were 176 flat sales. That fits a story where a nil-rate band of £500,000 removed the whole tax bill for most flat purchases, and where flats were the most active type during the holiday and the most subdued afterwards. It is a correlation in a single area, not a causal claim, but it is the kind of question that takes five minutes to ask once the data is in pandas.

Check your results

A few checks help before you draw conclusions:

  1. Completion date, not contract date. Price Paid Data records the date the transfer completed. A deadline rush therefore shows up with a lag after the offers were accepted.
  2. Missing and late records. The most recent months can be revised as late records arrive, so treat the latest month as provisional.
  3. Duplicates. The transaction id is unique per record, but a sale can appear twice if the same home is recorded in two ways. In a joined dataset of 22,286 sales I found 19 same-day pairs, which is under a tenth of a percent, but on a single street it can change a count.
  4. Your counts will be higher than mine. The Door Number figures cover only addresses that match an energy certificate, so new builds and unmatched addresses are missing. A raw Price Paid count for the same districts will give larger totals with the same shape.
  5. A spike is not a price effect. Counting completions says nothing about prices. Medians by type moved differently over the same years, and a volume spike should not be read as a price signal.

Extending it

There are several easy next steps. Split the monthly counts by district to see which area reacted most. Compare the median price in the month before a deadline with the month after. Or run the same code over the whole country and see how many districts show a March 2025 spike above 1.6. If you want to see the effect on a single road, the street pages on Door Number list each recorded sale, and the CR3 district hub is a good place to start for Caterham and its villages. A village-level view is on the Chaldon page, and the stamp duty calculator shows what the thresholds above meant in pounds for a given price. Regional tables are in the sold-price tables.

For the non-code version, with the street-level detail, see the full write-up on WordPress.

Licence and sources

The sale data is HM Land Registry Price Paid Data and the certificate data is from the energy performance register, both under the Open Government Licence v3.0. Every dataset used on the site is listed on the page that credits each source.

This post was written by the team at Door Number, a free property information site for England and Wales built from open data.