We have, $|\mathbb{Q}(i) : \mathbb{Q}(\sqrt{2})| = 2$ because a basis for this is $1$ and $i$ and $|\mathbb{Q}(\sqrt{2}) : \mathbb{Q}|$ = 2 since $1, \sqrt{2}$ is a basis. So shouldn't we get that $|\mathbb{Q}(i, \sqrt{2}): \mathbb{Q}| = 4$?
Context: I am working on a problem that asks to show $\mathbb{Q}(i, \sqrt{2}) = \mathbb{Q}(\alpha)$ for $\alpha$ an eighth root of unity. So the minimal polynomial for $\alpha$ would be $x^8-1$ over $\mathbb{Q},$ making the extension of $\alpha$ over $\mathbb{Q}$ degree $8.$ To show that the two extensions fields are equal I need only show that they have the same degree, but I am running in to some trouble here. Is this not the correct minimal polynomial? I know it reduces, so is it possible that $\alpha$ satisfies $x^4+1$ or $x^2+1$?