FDR is calculated using the Benjamini-Hochberg procedure. This involves ranking the p-values from multiple tests in ascending order and comparing each p-value to a threshold that changes based on the rank. If the p-value is less than the threshold, the null hypothesis is rejected. This method helps to control the proportion of false positives while allowing for the detection of true positives.