FreeStatisticalTools.com
Survival, clinical and meta-analysis

Cox Regression Calculator

Estimate how several predictors relate to the hazard of an event over time, adjusting for each other. Text predictors are dummy coded automatically.

Free · No sign-upReplaces SPSS · Stata · SASWorks 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.
Patienttext · 160 levelsTreatmenttext · 2 levelsAgenumericStagenumeric · codedTime_MonthsnumericEventnumeric · coded
P001Standard71110.50
P002New71323.91
P003Standard702401
P004New6833.21
P005Standard72318.10
P006New5519.11
P007Standard7334.61
P008New663320

Variables and options

Covariates 3 selected · min 1
Results update automatically when you change an option.

Results

160 rows · example data
Events / cases74 / 160
Likelihood ratio test.028χ²(3) = 9.10
−2 log-likelihood654.75
Table 1

Variables in the equation

CovariateBSEWaldpHazard ratio95% CI for HR
Treatment [Standard]0.5470.2385.30.0211.728[1.085, 2.752]
Age0.0180.0131.90.1681.018[0.992, 1.045]
Stage0.1570.1650.90.3421.170[0.847, 1.617]

Note. Breslow method for tied event times. HR above 1 means a higher hazard (shorter survival).

Hazard ratios with 95% CI

Interpretation

Treatment [Standard] increases the hazard by 73% (HR = 1.73), holding the other covariates constant.

The Cox model was significant, χ²(3) = 9.10, p = .028.

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). Cox Regression Calculator [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/cox-regression/

BibTeX

@software{xavier_coxregression_2026,
  author = {Xavier, Bibin},
  title = {Cox Regression Calculator},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/cox-regression/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free Cox Regression Calculator tool on FreeStatisticalTools.com (Xavier, 2026).”

What is Cox regression?

Cox regression models the hazard of an event over time as a function of several predictors, giving adjusted hazard ratios. It is the standard multivariable method for survival data.

When to use Cox regression

Use it to test several predictors of time to an event at once, such as treatment, age and disease stage.

Assumptions

  • Proportional hazards: the effect of each covariate is constant over time.
  • Censoring is non-informative, and there are about 10 events per covariate.

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, event status, value meaning the event occurred and covariates.
  3. 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.

Frequently asked questions

How do I interpret a hazard ratio?

A hazard ratio of 2 means twice the instantaneous risk of the event; 0.5 means half the risk, holding other covariates constant.

What is the proportional hazards assumption?

That each covariate’s effect on the hazard is constant over time. Crossing survival curves suggest it is violated.

How are tied event times handled?

With the Breslow approximation, the default in several statistics packages.

Related tools

Browse all categories