Confusion Matrix Calculator
Calculate core classification results from TP, TN, FP and FN.
Free toolValidated inputsGlobal use
Calculator
Enter your values and calculate.
Ready. Enter values and select Calculate.
Results are mathematical/statistical calculations and should be interpreted in the context of your dataset and model. This tool does not train a machine-learning model.
How to use this calculator
What to enter
Enter or select the following as requested: True Positives (TP); True Negatives (TN); False Positives (FP); False Negatives (FN). Follow the units, valid ranges, examples, and options displayed beside each field.
What the result means
The output is the matrix or vector operation requested, calculated from the entered components and dimensions. Check matrix sizes, vector order, coordinate conventions, and whether the operation is defined for the supplied inputs.
When to use it
Use this to solve or verify a linear-algebra or vector problem. Keep dimensions consistent and confirm the result against the conventions used in your course, model, or application.