Question: is it by accident or on accident?
Answer: On accident is a variant form of the same adverb phrase. ... on accident, stating that older speakers and writers are more likely to use by accident while younger ones are more likely to use on accident. While this might be true in spoken English, it's clearly not being transferred to formal written English.