There are times when carpenter ants will bite. It doesn't happen often, but it can happen when they feel the need to defend themselves, typically when the nest is disturbed. The bites they inflict can be painful, and at times the carpenter ant may spray a defensive chemical known as formic acid into the wound, which may cause pain and, in some cases, nausea.