In this paper we provide a complete characterization for when the Rees algebra and the associated graded ring of a perfect Gorenstein ideal of grade three are Cohen–Macaulay. We also treat the case of second analytic deviation one ideals satisfying some mild assumptions. In another set of results we give criteria for an ideal to be of linear type. Finally, we describe the equations defining the Rees algebras of certain Northcott ideals.