Abstract.Some answer set solvers deal with programs with variables by requiring a safety condition on program rules. This ensures that there is a close relation between the answer sets of the program and those of its ground version. If we move beyond the syntax of disjunctive programs, for instance by allowing rules with nested expressions, or perhaps even arbitrary first-order formulas, new definitions of safety are required. In this paper we consider a new concept of safety for formulas in quantified equilibrium logic where answer sets can be defined for arbitrary first-order formulas. The new concept captures and generalises two recently proposed safety definitions: that of Lee, Lifschitz and Palla (2008) as well as that of Bria, Leone and Faber (2008). We study the main metalogical properties of safe formulas.