It is natural to ask when a group has a planar Hasse lattice or more generally when its subgroup graph is planar. In this paper, we completely answer this question for finite groups. We analyze abelian groups, p-groups, solvable groups, and nonsolvable groups in turn. We find seven infinite families (four depending on two parameters, one on three, two on four), and three "sporadic" groups. In particular, we show that no nonabelian group whose order has three distinct prime factors can be planar.