Faddeev and Zakharov determined the trace formulas for the KdV equation with real initial conditions in 1971. We reprove these results for the KdV equation with complex initial conditions. The Lax operator is a Schrödinger operator with complex-valued potentials on the line. The operator has essential spectrum on the half-line plus eigenvalues (counted with algebraic multiplicity) in the complex plane without the positive half-line. We determine series of trace formulas. Here we have a new term: a singular measure, which is absent for real potentials. Moreover, we estimate of sum of the imaginary part of eigenvalues plus the singular measure in terms of the norm of potentials. The proof is based on classical results about the Hardy spaces.