A balanced pattern of order 2d is an element P ∈ {+, −} 2d , where both signs appear d times. Two sets A, B ⊂ [n] form a P -pattern, which we denote by pat(A,We consider the following extremal question: how large can a family A ⊂ P[n] be if A is P -free?We prove a number of results on the sizes of such families. In particular, we show that for some fixed c > 0, if P is a d-balanced pattern with d < c log log n then |A| = o(2 n ). We then give stronger bounds in the cases when (i) P consists of d + signs, followed by d − signs and (ii) P consists of alternating signs. In both cases, if d = o( √ n) then |A| = o(2 n ). In the case of (i), this is tight.