English Experts tip
These are essentially interchangeable.
I did it by accident.
I did it on accident.
Both would convey the same message.
22,700,000 results on the webClick here to see examples...
191,000 results on the webSee examples from the web...
A curated collection of the most popular idioms on TextRanch.