Magnetic vs true north, compass calibration, and what to do when your phone disagrees with itself.
If you have ever stood in an unfamiliar room in Dhaka, Chittagong, or anywhere else in Bangladesh trying to figure out which way to pray, you know the feeling. You pull out your phone, open a compass app, spin around twice, and still are not entirely sure you have it right. It should not be this hard.
The good news: finding the qibla direction from Bangladesh is straightforward once you understand the geometry and have the right tools. From Dhaka, the Kaaba in Mecca sits at a bearing of roughly 282 degrees — that is west-northwest. Across all of Bangladesh, the bearing only varies by a few degrees, so once you have an intuition for it, you can orient yourself quickly even without a phone.
The qibla bearing is calculated along a great circle — the shortest path across the Earth's surface between your location and the Kaaba (21.4225°N, 39.8262°E). From Dhaka (23.8103°N, 90.4125°E), that great-circle initial bearing is approximately 282°.
Think of it this way: face due west, then turn about 12 degrees to the right toward north. That is your qibla. If you are used to compass directions, it sits between west and west-northwest.
Since Bangladesh stretches from roughly 88°E to 92.7°E longitude and 20.7°N to 26.6°N latitude, the qibla bearing varies slightly across the country. Here is a reference table for major cities:
| City | Approximate Qibla Bearing | General Direction |
|---|---|---|
| Dhaka | 282° | West-northwest |
| Chittagong | 283° | West-northwest |
| Sylhet | 280° | West-northwest |
| Rajshahi | 282° | West-northwest |
| Khulna | 283° | West-northwest |
The variation across the entire country is only about 3 degrees. That means if you memorize "roughly 282 degrees," you will be close enough anywhere in Bangladesh.
Before smartphones, people in Bangladesh used the sun's position as a rough guide. The sun sets in the west, and since the qibla is just slightly north of due west, you can face the sunset and adjust a touch to the right. This works reasonably well during equinox months (March and September) when the sun sets almost exactly due west. In summer and winter, the sunset point shifts, making this method less reliable.
A magnetic compass gives you north, and from there you can count off 282 degrees. The catch is magnetic declination — the difference between true north and magnetic north. In Bangladesh, the declination is small (around 0° to -1°), so it barely matters. A physical compass is actually quite accurate here, as long as you are not standing next to a steel beam or an electrical panel.
Most people today reach for a qibla compass app on their phone. And most of the time, it works. But if you have ever watched the arrow spin wildly or point in a direction you know is wrong, you have run into one of these issues:
The figure-eight calibration trick solves most problems. Hold your phone and trace a large figure-eight in the air, rotating your wrist as you go. Do it three or four times. You will usually see the compass settle down immediately.
Niyat's built-in qibla compass combines your phone's GPS and magnetometer to calculate the precise bearing from your exact location to the Kaaba. GPS gives your coordinates, the magnetometer gives your heading, and the app computes the great-circle bearing in real time.
This matters because a GPS-based calculation is not affected by magnetic interference the way a pure compass app is. Even if your magnetometer is slightly off, Niyat can show you the correct bearing angle so you can verify the compass needle against the known number. If you are in Dhaka and the app says 282° but the arrow is pointing somewhere that feels like 260°, you know it is time to recalibrate.
Whether you are praying at home, in a hotel room in Cox's Bazar, or visiting family in Sylhet, having a reliable qibla tool means one less thing to worry about.
Yes. Scholars across madhabs agree that facing the general direction of the Kaaba is sufficient if you cannot be exact. A few degrees of error does not invalidate your prayer. The obligation is to make a sincere effort to face Qibla, not to achieve GPS-level precision.
GPS-based bearings are more reliable indoors and around electronics, because they calculate the true direction from your coordinates to Mecca rather than reading a magnetic field. A phone compass can be thrown off by buildings, electrical wiring, and metal objects. The most accurate apps combine both — GPS for the bearing, compass for live orientation.
From Bangladesh, the Qibla points roughly west-northwest — which can feel counterintuitive if you imagined Mecca being further south. The shortest path on a sphere is a great circle, not a straight line on a flat map. Trust the app's calculation; the feeling of "wrong" comes from mental Mercator-style maps.
Open the Qibla app and move the phone in a figure-eight motion in the air for a few seconds. Stay away from laptops, metal desks, and chargers while calibrating. If the needle still jitters, your magnetometer may be damaged — switch to a GPS-only Qibla mode in the app.
Facing Qibla is recommended (mustahabb) for dua, dhikr, and reciting Quran, but it is not required outside of salah. You can do dhikr in any direction. Only the obligatory and sunnah prayers require facing the Kaaba — and even then, on a moving vehicle or during fear, facing wherever you can is permitted.
GPS-accurate qibla direction, prayer times, and Quran — all in one app. No ads, no clutter.
Download Niyat Free Get it on Google PlayNo account, nothing saved — see where you stand, then see how Niyat answers, sourced from Quran & Hadith.
Take the quiz →