Explanation
In general, compounds formed between a metal and a non-metal are ionic. On the other hand, compounds formed between two non-metals are covalent.
P2O5 is formed between two non-metals, phosphorus (P) and oxygen (O). Therefore, P2O5 has a covalent bond.