The discriminant of a quadratic equation determines the nature of its roots using the formula D equals b squared minus 4ac. If the discriminant equals zero, the quadratic formula gives exactly one repeated root. Therefore, the roots are real and equal.