Muhammad ibn Ahmad ibn Gazi (; about 1437 – 1513) was a mathematician from the Maghreb. He wrote poems about the work of other mathematicians, including Ibn al-Banna' al-Marrakushi. He used lattice multiplication in his math writing.