CalculatorSignAll calculators

Inflation by Year Relative to a Threshold Calculator

Find how often annual-average U.S. CPI inflation met an entered threshold and see the longest run of qualifying years.

Inflation by Year Relative to a Threshold Calculator

Result
—

Use this calculator on your site

Paste the full code, including the CalculatorSign credit, into a Custom HTML block on your site.

Preview widget

This calculator counts the years in a selected span when annual-average U.S. consumer price inflation reached or exceeded a threshold. It also shows the longest consecutive run of those years. Choose dates from 1914 onward and enter a cutoff such as 3%. The table displays the rate for each year, calculated from two successive annual-average index values, so you can see where a series of years begins and ends.

Why the first row needs an earlier index value

Annual-average inflation for a given year compares the index average for that year with the average from the previous year. Divide the current average by the earlier average, subtract one, and multiply by 100. Selecting 2016 as the first row therefore uses the 2015 index to calculate 2016. The data start with an annual index for 1913, so 1914 is the first year with both values available for this calculation.

These rates use the U.S. city average for the all-items Consumer Price Index for All Urban Consumers, or CPI-U, in the recent data and the historical U.S. CPI series compiled by the Federal Reserve Bank of Minneapolis for earlier years. The underlying series represents broad price movement for a basket tracked by the index. A single product, city, family, or spending plan may move differently. Use the reported national annual series when you want a consistent historical comparison across the same span.

Worked example at three percent

Choose 2016 through 2025 and put 3 in the threshold field. The form checks ten annual comparisons. Three years meet or exceed the cutoff. They are 2021, 2022, and 2023, so the longest run also lasts three years. The 2024 and 2025 rows fall below the cutoff and therefore end that run for this period. A year equal to the threshold qualifies under the rule used here.

In 2022 the annual average was 292.655, compared with 270.970 in 2021. Dividing 292.655 by 270.970 gives a ratio of approximately 1.08003. Subtracting one gives 0.08003, which is about 8.00% as shown in the table. The program checks the rate before rounding it for display, so a value that rounds to 3.00% can fall just outside a 3% cutoff. Look at whether its row indicates that the threshold was met when working near a boundary.

Read a count and a run as different summaries

To see why both outputs matter, imagine two eight-year periods that each have four qualifying years. In one, qualifying years occur every other year, so the longest streak has only one year. In the other, four qualifying years appear together, producing a four-year run. The count alone is the same in both cases. Displaying the longest uninterrupted run distinguishes a cluster from scattered years without requiring you to infer the pattern from a summary percentage.

The calculation resets the run when a year fails to qualify. It only considers years inside the selected start and end. If a run began before your first year, the display includes the portion in view. Similarly, a qualifying year at the end can be part of a larger run that continues beyond the selected period. Increase the range and check the rows when investigating the full duration of a known historical episode.

Keep annual-average rates separate from December rates

December-to-December inflation compares two particular months. Annual-average inflation compares two averages across calendar years. The measures can differ because price changes occur at different points within the year. A late rise may affect the December rate substantially while contributing less to the annual average. When matching published numbers or comparing against a policy threshold, make sure the source uses the annual-average method and the same price series.

The threshold is a comparison level that you supply. It does not become a forecast and does not explain what caused a particular inflation observation. The rate count also treats each year as one row regardless of the magnitude above the cutoff. A year at 3.01% and one at 8% each add one to the count for a 3% threshold. If you need the cumulative price change over a period, compare the endpoint index levels directly since compounding makes that measure different from a count.

Frequently asked questions

What does a negative threshold mean?

A threshold of negative 2% includes all years at or above negative 2%, including any positive inflation rates. To examine actual declines, read the rows whose calculated rates are below zero.

Will raising the cutoff ever add qualifying years?

At the same date range and data, a higher threshold can only remove qualifying years or leave the count unchanged. The longest uninterrupted run can also stay the same or shrink.

Why are percentages in a published table sometimes a little different?

A source may publish fewer decimal places or report a different period or index series. Verify the index description and date basis before comparing a printed percent with this calculation.

Can I enter the current year before it is complete?

The selector uses annual averages available in this calculator's historical data. A current-year estimate based on monthly observations uses a different period, so use a monthly series when you need an in-progress comparison.

BLS U.S. city-average CPI-U annual summary

Minneapolis Fed historical CPI compilation