When is the cut off age for trick or treating?

When is the cut off age for trick or treating?

How old is to old to be trick or treating?

When I was 15 years old I went trick or treating with friends all age 14-15 and one house turned us down saying we are to old.