He was born in a Persian[1][2][3] family, and his birthplace is given as Chorasmia by Ibn al-Nadim.
Few details of al-Khwārizmī's life are known with certainty. His name may indicate that he came from Khwarezm (Khiva), then in Greater Khorasan, which occupied the eastern part of the Greater Iran, now Xorazm Province in Uzbekistan. Abu Rayhan Biruni calls the people of Khwarizm "a branch of the Persian tree".[9]
Al-Tabari gave his name as Muhammad ibn Musa al-Khwārizmī al-Majousi al-Katarbali (Arabic: محمد بن موسى الخوارزميّ المجوسـيّ القطربّـليّ
. The epithet al-Qutrubbulli could indicate he might instead have come from Qutrubbul (Qatrabbul),[10] a viticulture district near Baghdad. However, Rashed[11] suggests:
There is no need to be an expert on the period or a philologist to see that al-Tabari's second citation should read “Muhammad ibn Mūsa al-Khwārizmī and al-Majūsi al-Qutrubbulli,” and that there are two people (al-Khwārizmī and al-Majūsi al-Qutrubbulli) between whom the letter wa [Arabic ‘و’ for the article ‘and’] has been omitted in an early copy. This would not be worth mentioning if a series of errors concerning the personality of al-Khwārizmī, occasionally even the origins of his knowledge, had not been made. Recently, G. J. Toomer ... with naive confidence constructed an entire fantasy on the error which cannot be denied the merit of amusing the reader.
Regarding al-Khwārizmī's religion, Toomer writes:
Another epithet given to him by al-Ṭabarī, "al-Majūsī," would seem to indicate that he was an adherent of the old Zoroastrian religion. This would still have been possible at that time for a man of Iranian origin, but the pious preface to al-Khwārizmī's Algebra shows that he was an orthodox Muslim, so al-Ṭabarī's epithet could mean no more than that his forebears, and perhaps he in his youth, had been Zoroastrians.[1]
Ibn al-Nadīm's Kitāb al-Fihrist includes a short biography on al-Khwārizmī, together with a list of the books he wrote. Al-Khwārizmī accomplished most of his work in the period between 813 and 833. After the Islamic conquest of Persia, Baghdad became the centre of scientific studies and trade, and many merchants and scientists from as far as China and India traveled to this city, as did Al-Khwārizmī. He worked in Baghdad as a scholar at the House of Wisdom established by Caliph al-Maʾmūn, where he studied the sciences and mathematics, which included the translation of Greek and Sanskrit scientific manuscripts.
D. M. Dunlop suggests that it may have been possible that Muḥammad ibn Mūsā al-Khwārizmī was in fact the same person as Muḥammad ibn Mūsā ibn Shākir, the eldest of the three Banū Mūsā.[12]