For $E (X - EX)^2$ to exist (may be infinite),
- according to $E (X - EX)^2 = E X^2 - (EX)^2$, I think a necessary and sufficient condition is $EX$ exists and is finite, because $ E X^2 \geq (E X)^2$ by Jensen's inequality and $\infty - \infty$ is not defined.
- But as long as $EX$ exists, $(X - EX)^2$ is a nonnegative measurable function and $E (X - EX)^2$ should exists. So it seems a necessary and sufficient condition is $EX$ exists.
Why do the above two not agree with each other? Do I miss something? Thanks.
Note that Glen_b uses a different definition for variance (see comment), which might exists when the traditional definition doesn't. In the definition he uses, if $X$ has a Pareto distribution with $α=1$, then $EX = \infty$ and $Var X = \infty$, from https://stats.stackexchange.com/a/91515/1005.