Qibla
Direction that Muslims face while praying salah
Read the original on Wikipedia ↗ Last updated from Wikipedia: 29 November 2026

The qibla (Arabic: قبلة, lit. 'direction') is the direction towards the Kaaba (opens on Wikipedia) in the Sacred Mosque (opens on Wikipedia) in Mecca, which is used by Muslims in various religious contexts, particularly the direction of prayer (opens on Wikipedia) for the salah (opens on Wikipedia). According to Islamic tradition, the Kaaba is believed to be a sacred site built by prophets Abraham (opens on Wikipedia) and Ishmael (opens on Wikipedia), and that its use as the qibla was ordained by God in several verses of the Quran revealed to Muhammad in the second Hijri year. Prior to this revelation, Muhammad and his followers in Medina faced Jerusalem for prayers. Most mosques contain a mihrab (a wall niche) that indicates the direction of the qibla.
The qibla is also the direction for entering the ihram (opens on Wikipedia) (sacred state for the hajj pilgrimage), the direction to which animals are turned during dhabihah (opens on Wikipedia) (Islamic slaughter), the recommended direction to make du'a (opens on Wikipedia) (supplications), the direction to avoid when relieving oneself or spitting, and the direction to which the deceased are aligned when buried (opens on Wikipedia). The qibla may be observed facing the Kaaba accurately (ayn al-ka'ba) or facing in the general direction (jihat al-ka'ba). Most Islamic scholars consider that jihat al-ka'ba is acceptable if the more precise ayn al-ka'ba cannot be ascertained.
The most common technical definition used by Muslim astronomers for a location is the direction on the great circle (opens on Wikipedia)—in the Earth's Sphere (opens on Wikipedia)—passing through the location and the Kaaba. This is the direction of the shortest possible path from a place to the Kaaba, and allows the exact calculation (hisab) of the qibla using a spherical trigonometric (opens on Wikipedia) formula that takes the coordinates of a location and of the Kaaba as inputs (see formula below). The method is applied to develop mobile applications (opens on Wikipedia) and websites for Muslims, and to compile qibla tables used in instruments such as the qibla compass (opens on Wikipedia). The qibla can also be determined at a location by observing the shadow of a vertical rod (opens on Wikipedia) on the twice-yearly occasions when the Sun is directly overhead in Mecca—on 27 and 28 May at 12:18 Saudi Arabia Standard Time (opens on Wikipedia) (09:18 UTC), and on 15 and 16 July at 12:27 SAST (09:27 UTC). The spaceflight (opens on Wikipedia) of a devout Muslim, Sheikh Muszaphar Shukor, to the International Space Station (ISS) in 2007 generated a discussion with regard to the qibla direction from low Earth orbit (opens on Wikipedia), prompting the Islamic authority (opens on Wikipedia) of his home country, Malaysia, to recommend determining the qibla "based on what is possible" for the astronaut.
The qibla is the direction of the Kaaba (opens on Wikipedia), a cube-like building at the centre of the Sacred Mosque (opens on Wikipedia) (al-Masjid al-Haram) in Mecca, in the Hijaz region of Saudi Arabia. Other than its role as qibla, it is also the holiest site (opens on Wikipedia) for Muslims, also known as the House of God (Bayt Allah) and where the tawaf (opens on Wikipedia) (the circumambulation (opens on Wikipedia) ritual) is performed during the Hajj and umrah pilgrimages. The Kaaba has an approximately rectangular ground plan with its four corners pointing close to the four cardinal directions (opens on Wikipedia).[1] According to the Quran, it was built by Abraham (opens on Wikipedia) and Ishmael (opens on Wikipedia), both of whom are prophets in Islam.[2] Few historical records remain detailing the history of the Kaaba before the rise of Islam, but in the generations prior to Muhammad, the Kaaba had been used as a shrine of the pre-Islamic Arabic religion (opens on Wikipedia).[2]
There are different reports of the qibla direction when Muhammad was in Mecca (before his migration to Medina). According to a report cited by historian al-Tabari (opens on Wikipedia) and exegete (textual interpreter) al-Baydawi (opens on Wikipedia), Muhammad prayed towards the Kaaba. Another report, cited by al-Baladhuri (opens on Wikipedia) and also by al-Tabari, says that Muhammad prayed towards Jerusalem while in Mecca. Another report, mentioned in Ibn Hisham's biography of Muhammad (opens on Wikipedia), says that Muhammad prayed in such a way as to face the Kaaba and Jerusalem simultaneously.[3] The qibla status of the Kaaba (or the Sacred Mosque in which it is located) is based on the verses 144, 149, and 150 of the al-Baqarah (opens on Wikipedia) chapter of the Quran, each of which contains a command to "turn your face toward the Sacred Mosque" (fawalli wajhaka shatr al-Masjid il-Haram).[4] According to Islamic traditions, these verses were revealed in the month of Rajab (opens on Wikipedia) or Sha'ban (opens on Wikipedia) in the second Hijri year (623 CE), or about 15 or 16 months after Muhammad's migration to Medina.[5][3] Prior to these revelations, Muhammad and the Muslims in Medina had prayed towards Jerusalem as the qibla, the same direction as the prayer direction—the mizrah (opens on Wikipedia)—used by the Jews of Medina (opens on Wikipedia). Islamic tradition says that these verses were revealed during a prayer congregation; Muhammad and his followers immediately changed their direction from Jerusalem to Mecca in the middle of the prayer ritual. The location of this event became the Masjid al-Qiblatayn (opens on Wikipedia) ("The Mosque of the Two Qiblas").[3]
Before the development of astronomy in the Islamic world, Muslims used traditional methods to determine the qibla. These methods included facing the direction that the companions of Muhammad (opens on Wikipedia) had used when in the same place; using the setting and rising points of celestial objects; using the direction of the wind; or using due south, which was Muhammad's qibla in Medina. Early Islamic astronomy (opens on Wikipedia) was built on its Indian (opens on Wikipedia) and Greek (opens on Wikipedia) counterparts, especially the works of Ptolemy, and soon Muslim astronomers developed methods to calculate the approximate directions of the qibla, starting from the mid-9th century. In the late 9th and 10th centuries, Muslim astronomers developed methods to find the exact direction (opens on Wikipedia) of the qibla which are equivalent to the modern formula. Initially, this "qibla of the astronomers" was used alongside various traditionally determined qiblas, resulting in much diversity in medieval Muslim cities. In addition, the accurate geographic data necessary for the astronomical methods to yield an accurate result was not available before the 18th and 19th centuries, resulting in further diversity of the qibla. Historical mosques with differing qiblas still stand today throughout the Islamic world.
Today Muslims of all branches, including the Sunni and the Shia, all pray towards the Kaaba. Historically, one major exception was the Qarmatians (opens on Wikipedia), a now-defunct syncretic Shia sect which rejected the Kaaba as the qibla; in 930, they sacked Mecca (opens on Wikipedia) and for a time took the Kaaba's Black Stone (opens on Wikipedia) to their centre of power in al-Ahsa (opens on Wikipedia), with the intention of starting a new era in Islam.[6][7]

Etymologically, the Arabic word qibla (قبلة) means "direction". In Islamic ritual and law, it refers to a special direction faced by Muslims during prayers and other religious contexts.[3] Islamic religious scholars agree that facing the qibla is a necessary condition for the validity of salah (opens on Wikipedia)—the Islamic ritual prayer—in normal conditions;[8] exceptions include prayers during a state of fear or war, as well as non-obligatory prayers during travel.[9] The hadith (Muhammad's tradition) also prescribes that Muslims face the qibla when entering the ihram (opens on Wikipedia) (sacred state for hajj), after the middle jamrah (opens on Wikipedia) (stone-throwing ritual) during the pilgrimage.[3] Islamic etiquette (opens on Wikipedia) (adab) calls for Muslims to turn the head of an animal when it is slaughtered (opens on Wikipedia), and the faces of the dead when they are buried, toward the qibla.[3] The qibla is the preferred direction when making a supplication (opens on Wikipedia) and is to be avoided when defecating, urinating, and spitting.[3]
Inside a mosque, the qibla is usually indicated by a mihrab, a niche (opens on Wikipedia) in its qibla-facing wall. In a congregational prayer, the imam stands in it or close to it, in front of the rest of the congregation.[10] The mihrab became a part of the mosque during the Umayyad period and its form was standardised during the Abbasid period; before that, the qibla of a mosque was known from the orientation of one of its walls, called the qibla wall. The term mihrab itself is attested only once in the Quran, but it refers to a place of prayer of the Israelites (opens on Wikipedia) rather than a part of a mosque.[10][a] The Amr ibn al-As Mosque in Fustat, Egypt, one of the oldest mosques, is known to have been built originally without a mihrab, though one has since been added.[11]
Ayn al-ka'ba and jihat al-ka'ba
Ayn al-ka'ba ("standing so as to face the Kaaba head-on") is a position facing the qibla so that an imaginary line extending from the person's line of sight would pass through the Kaaba.[12] This manner of observing the qibla is easily done inside the Great Mosque of Mecca and its surroundings, but given that the Kaaba is less than 20 metres (66 ft) wide, this is virtually impossible from distant locations.[13] For example, from Medina, with a 338-kilometre (210 mi) straight-line distance from the Kaaba, a one-degree (opens on Wikipedia) deviation from the precise imaginary line—an error hardly noticeable when setting one's prayer mat or assuming one's posture—results in a 5.9-kilometre (3.7 mi) shift from the site of the Kaaba.[14] This effect is amplified when further than Mecca:[15] from Jakarta (opens on Wikipedia), Indonesia—some 7,900 km (4,900 mi) away, a one-degree deviation causes more than a 100-kilometre (62 mi) shift, and even an arc second (opens on Wikipedia)'s deviation—(1⁄3600 of a degree)—causes a more than 100-metre (330 ft) shift from the location of the Kaaba.[16] In comparison, the construction process of a mosque can easily introduce an error of up to five degrees from the calculated qibla, and the installation of prayer rugs inside the mosque as indicators for worshippers can add another deviation of five degrees from the mosque's orientation.[16]
A minority of Islamic religious scholars—for example Ibn Arabi (opens on Wikipedia) (d. 1240)—consider ayn al-ka'ba to be obligatory during the ritual prayer, while others consider it obligatory only when one is able. For locations further than Mecca, scholars such as Abu Hanifa (opens on Wikipedia) (d. 699) and Al-Qurtubi (opens on Wikipedia) (d. 1214) argue that it is permissible to assume jihat al-ka'ba, facing only the general direction of the Kaaba.[17] Others argue that the ritual condition of facing the qibla is already fulfilled when the imaginary line to the Kaaba is within one's field of vision.[12] For instance, there are legal opinions that accept the entire southeastern quadrant in Al-Andalus (Islamic Iberian Peninsula), and the southwestern quadrant in Central Asia, to be valid qibla.[18] Arguments for the validity of jihat al-ka'ba include the wording of the Quran, which commands Muslims only to "turn [one's] face" toward the Great Mosque, and to avoid imposing requirements that would be impossible to fulfill if ayn al-ka'ba were to be obligatory in all places.[19] The Shafi'i school (opens on Wikipedia) of Islamic law, as codified in Abu Ishaq al-Shirazi (opens on Wikipedia)'s 11th-century Kitab al-Tanbih fi'l-Fiqh, argues that one must follow the qibla indicated by the local mosque when one is not near Mecca or, when not near a mosque, to ask a trustworthy person. When this is not possible, one is to make one's own determination—to exercise ijtihad (opens on Wikipedia)—by the means at one's disposal.[20][21]
Loading “Determination”…
Loading “Development of methods”…
Loading “Instruments”…
Loading “Diversity”…
Loading “See also”…
Loading “Notes”…
Loading “References”…
Loading “External links”…
Image credits (14)
- Millions Perform Prayer at the Grand Mosque, Makkah, Saudi Arabia (2026).jpg — Unknown authorUnknown author, CC BY-SA 4.0, via Wikimedia Commons
- Middle East location map2.svg — World_location_map.svg derivative work: 배우는사람 (talk), Public domain, via Wikimedia Commons
- Red pog.svg — Andux, Public domain, via Wikimedia Commons
- Samarcanda, Shah-i-Zinda 28 (cropped).jpg — LBM1948, CC BY-SA 4.0, via Wikimedia Commons
- Great circle passing through two points.svg — HaEr48, CC BY-SA 4.0, via Wikimedia Commons
- Qibla from Yogyakarta on globe, English labels paths.svg — HaEr48, CC BY-SA 4.0, via Wikimedia Commons
- Direction of qibla using shadow.svg — HaEr48, CC BY-SA 4.0, via Wikimedia Commons
- Craig projection SW.jpg — Strebe, CC BY-SA 3.0, via Wikimedia Commons
- Al-Khalili qibla table, Damascus copy 15th-16th century.jpg — unanymous Syrian copy (15th or 16th century) of a table prepared by Shams al-Din al-Khalili (14th century), Public domain, via Wikimedia Commons
- QiblaMat.jpg — Maqivi, CC BY-SA 3.0, via Wikimedia Commons
- Turkish and Islamic Museum 0951.jpg — Dosseman, CC BY-SA 4.0, via Wikimedia Commons
- Mosques in Cairo showing different direction.png — OpenStreetMap contributors, CC BY-SA 2.0, via Wikimedia Commons
- 01 05 Street WDC 8jul05.jpg — Elvert Barnes, CC BY 2.0, via Wikimedia Commons
- ISS Aug2005.jpg — NASA, Public domain, via Wikimedia Commons