For a smooth curve $C$ on a smooth, projective surface $S$ over $\mathbb{C}$, we have the genus formula:
$g(C) = 1 + \frac12(C^2 + C \cdot K_S)$
where $K_S$ is the canonical divisor. Is this formula still true for singular (e.g. reducible) curves on $S$ if one uses the arithmetic genus in the left hand side instead of the geometric genus?
Yes, the formula is still true if $C\subset S$ is reduced, irreducible but not smooth.
The arithmetic genus is to be defined as $p_a(C)=\dim_{\mathbb C}H^1(C,\mathcal O_C),$ and we then have $$p_a(C)= 1+\frac {\deg[(\mathcal K_S\otimes \mathcal O_S(C))\mid C]}{2}. $$
You can find a proof in chapter II of Compact complex surfaces by Wolf Barth, C. Peters and Antonius Ven.