Let $V\subseteq \mathbb{P}^2$ be a plane curve.
If $V$ has degree $d\geq 3$, then its genus $g$ is given by $$ \begin{align*} g = \frac{1}{2}(d-1)(d-2). \end{align*} $$
Proof