1. His failure is mainly due to his carelessness.

2. His failure is mainly because of his carelessness.

3. His failure is mainly owing to his carelessness.

---------------------
Are they all the same and grammatical?

1 answer

All mean the same thing. Sentence 2 has the best phrasing of all.