Lemma 10.60.4. The Krull dimension of $R$ is the supremum of the heights of its (maximal) primes.

Proof. This is so because we can always add a maximal ideal at the end of a chain of prime ideals. $\square$

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).