How to use this calculator
Calculate the share of all classified cases that were labeled correctly from a binary confusion matrix.
- Enter True positives, True negatives, False positives, False negatives. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How Classification accuracy calculator works
Calculate the share of all classified cases that were labeled correctly from a binary confusion matrix.
Inputs and units
- True positives: Enter whole-number true positives.
- True negatives: Enter whole-number true negatives.
- False positives: Enter whole-number false positives.
- False negatives: Enter whole-number false negatives.
Formula and method
accuracy (%) = 100 × (TP + TN)/(TP + TN + FP + FN)
Worked example
With TP=45, TN=45, FP=5, and FN=5, correct cases are 90 of 100, so accuracy is 90%.
Interpreting the result
Accuracy summarizes the overall fraction correct at the chosen classification threshold.
Assumptions and limits
Requires at least one case. Accuracy can look high when classes are imbalanced and does not distinguish false-positive from false-negative costs; inspect class-specific metrics and the threshold.
Frequently asked questions
Can a model have high accuracy but poor minority-class performance?
Yes. A dominant class can make the overall correct fraction high even when the model misses most cases in a smaller class.
Does accuracy depend on the classification threshold?
Usually yes; changing the threshold changes the confusion-matrix counts and therefore the result.
How do I use the Classification accuracy calculator?
Enter True positives, True negatives, False positives, False negatives. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Classification accuracy?
With TP=45, TN=45, FP=5, and FN=5, correct cases are 90 of 100, so accuracy is 90%.
What does the Classification accuracy calculator calculate?
Calculate the share of all classified cases that were labeled correctly from a binary confusion matrix.