FreeStatisticalTools.com
Econometrics and time series

Unit Root Tests: Augmented Dickey-Fuller and KPSS

Check whether time series are stationary before modelling them. The ADF test has a unit root as its null; the KPSS test has stationarity as its null. Running both, in levels and first differences, gives the order of integration of each series.

Free · No sign-upReplaces EViews · StataWorks with your data
Updated · By Bibin Xavier

Data 160 × 6

Paste from Excel, or drop a CSV, TSV or Excel file here.
Example data 160 rows, 6 variables. Data stays in this browser tab.
Quartertext · 160 levelsLog_GDPnumericLog_ConsumptionnumericInflationnumericInterest_RatenumericMoney_Growthnumeric
2000Q19.20618.65721.171.324.05
2000Q29.20058.66951.973.23.9
2000Q39.2168.67272.613.544.84
2000Q49.21158.69232.152.533.4
2001Q19.2248.69571.983.141.25
2001Q29.22868.68841.473.112.17
2001Q39.2328.70521.552.651.8
2001Q49.22078.69072.182.433.5

Variables and options

Time series (rows in time order) 3 selected · min 1
Results update automatically when you change an option.

Results

160 rows · example data
Table 1

Unit root and stationarity tests

SeriesFormADF τLagsADF pKPSS ηKPSS pOrder
Log_GDPLevel0.9071.9931.849< .010I(1)
First difference-13.8620< .0010.220> .100
Log_ConsumptionLevel0.5122.9851.847< .010I(1)
First difference-12.2921< .0010.142> .100
InflationLevel-5.1932< .0010.049> .100I(0)
First difference-7.0527< .0010.098> .100

Note. ADF: H₀ unit root, MacKinnon (1994) p-values; 5% critical value ≈ -2.88 (MacKinnon, 2010). KPSS: H₀ stationarity, p-values interpolated between .01 and .10 (Kwiatkowski et al., 1992), Newey-West bandwidth chosen automatically (Hobijn et al., 2004). A series is I(0) when ADF rejects and KPSS does not.

Log_GDP over time

ACF and PACF of Log_GDP

Table 2

Ljung-Box test for Log_GDP

LagQp
1157.26< .001
4601.44< .001
81127.86< .001
121580.31< .001
202263.11< .001

Note. H₀: no autocorrelation up to the given lag.

Interpretation

Log_GDP is I(1); Log_Consumption is I(1); Inflation is I(0). Because some series are I(1), test for cointegration before estimating a model in levels, or model the first differences.

How to cite this tool

Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.

APA 7

Xavier, B. (2026). Unit Root Tests: Augmented Dickey-Fuller and KPSS [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/unit-root-test-adf-kpss/

BibTeX

@software{xavier_unitroottest_2026,
  author = {Xavier, Bibin},
  title = {Unit Root Tests: Augmented Dickey-Fuller and KPSS},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/unit-root-test-adf-kpss/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free Unit Root Tests: Augmented Dickey-Fuller and KPSS tool on FreeStatisticalTools.com (Xavier, 2026).”

What is a unit root test?

Most time-series methods assume stationary data. The augmented Dickey-Fuller test checks for a unit root; the KPSS test checks the opposite null of stationarity. Together, in levels and first differences, they reveal whether a series is I(0), I(1) or higher.

When to use a unit root test

Run unit root tests on every series before time-series regression, VAR, Granger causality or cointegration analysis, to avoid spurious regressions.

Assumptions

  • Rows are in time order with equal spacing and no gaps.
  • Include a trend in the ADF regression if the series trends in levels.

How to use this tool

  1. Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
  2. Choose the variables. Select the time series (rows in time order).
  3. Set the options. Fill in adf deterministic terms, adf lag selection, maximum lag (0 = automatic) and kpss null.
  4. Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.

How to report a unit root test in APA style

Report a table of ADF (and KPSS) statistics for each series in levels and first differences, with lag length and deterministic terms.

Frequently asked questions

How do I interpret the ADF test?

The null hypothesis is a unit root (non-stationary). A p-value below .05 rejects it, so the series is stationary.

Why use both ADF and KPSS?

They have opposite null hypotheses. Agreement (ADF rejects, KPSS does not) gives strong evidence of stationarity; disagreement suggests the evidence is weak.

Should I include a trend?

Include a constant and trend if the series trends upward or downward in levels; a constant only if it fluctuates around a non-zero mean.

Related tools

Browse all categories