Qibla Direction Finder in Pakistan
Find the exact Qibla direction from anywhere in Pakistan using a compass bearing.
🔒 Runs in your browser. Nothing uploaded.
How to use
- 1
Select your city, or enter your exact latitude and longitude.
- 2
Read the Qibla bearing in degrees from true north.
- 3
Face that direction using a compass — remember to account for magnetic declination if your compass shows magnetic north.
Formula / How it works
The Qibla is the great-circle (shortest) direction from your location to the Kaaba in Makkah (21.4225° N, 39.8262° E).
Bearing = atan2( sin(Δλ), cos(φ1)·tan(φ2) − sin(φ1)·cos(Δλ) ), where φ1 is your latitude, φ2 is Makkah's latitude and Δλ is the longitude difference.
The result is a compass bearing in degrees clockwise from true north — for example, about 270° means due west.
For most of Pakistan the Qibla is roughly west to west-southwest (about 255°–275° depending on your city).
Frequently asked questions
What is the Qibla direction in Pakistan?
Roughly west to west-southwest. Karachi is about 267°, Lahore about 259°, and Islamabad about 256° — the exact bearing depends on your location, so use the tool for your city.
Is the bearing from true north or magnetic north?
The bearing is from true north. Most phone compasses already correct for magnetic declination, but a simple magnetic compass can be off by a few degrees in Pakistan.
Why not just face due west?
Due west (270°) is close for Karachi, but the shortest great-circle route to Makkah is slightly south of west for most of Pakistan. The exact bearing is more accurate.
What are Makkah’s coordinates?
The Kaaba is at approximately 21.4225° N latitude, 39.8262° E longitude. The tool calculates the great-circle bearing to this point.
Does the Qibla change if I travel?
Yes — the bearing depends on where you are. Recalculate it whenever you move to a new city or country.
Can I use my phone compass?
Yes. Hold your phone flat, let the compass settle away from metal objects, and turn until it points to the bearing shown by the tool.
Related tools
Zakat Calculator
Work out your 2.5% Zakat on gold, silver, cash, business stock and savings.
Islamic Date Converter
Convert between Gregorian and Hijri dates, instantly and free.
Namaz Time Calculator
Accurate Fajr, Dhuhr, Asr, Maghrib and Isha times for any city in Pakistan.
Prayer Tracker
Track your five daily prayers and build a consistent Salah habit.
Was this Qibla Direction Finder helpful?
Last updated: 15 November 2026 | Reviewed by: Marwat