Specificity is calculated as the number of true negatives divided by the sum of true negatives and false positives. Sensitivity is calculated as the number of true positives divided by the sum of true positives and false negatives. These metrics are often represented as percentages, and their values can significantly impact clinical decision-making and patient management.