The modulus of a complex number is the square root of the sum of the squares of the real part and the imaginary part of the complex number. It can be calculated using the formula |z| = √(x2 + y2).