Azlaan Electric AC Solar Center — Solar, CCTV, AC & electrical work, Faisalabad Call: 0300-8987448

Qibla Bearing Calculator

Find the exact direction of the Kaaba from anywhere. Enter your latitude and longitude, or use your device GPS, and get the compass bearing in degrees, a compass dial with a needle, the distance in kilometers, and a full step-by-step breakdown of the math.

Your Location

Quick cities:
Qibla Bearing
—
—
Distance to Kaaba
—
Needle Angle from North
—
N E S W
The red needle points toward the Kaaba

Step-by-step calculation

    How to use

    1. Type your latitude and longitude, tap a quick city button, or press "Use My Location" to read them from your device GPS (you may be asked to allow location access).
    2. Press "Calculate Bearing". The tool converts the coordinates to radians and applies the great circle initial bearing formula.
    3. Read the bearing in degrees (0 to 360, clockwise from true north), the compass label, the distance in kilometers, and the compass dial where the red needle points to the Qibla.
    4. Expand the step-by-step breakdown to see every intermediate value of the calculation.

    Frequently asked questions

    What is the Qibla bearing?

    The Qibla bearing is the compass direction (0 to 360 degrees) from your location toward the Kaaba in Makkah, measured clockwise from true north along the great circle path.

    How do I find the Qibla direction from my location?

    Enter your latitude and longitude, tap a quick city button, or press Use My Location to fill them from GPS, then press Calculate Bearing.

    Why is the Qibla direction not simply east or west from many places?

    The Earth is round, so the shortest path between two points is a great circle arc. This curve makes the bearing from places like Pakistan point southwest, not due west.

    How accurate is this calculator?

    The math uses the standard initial bearing formula with Kaaba coordinates 21.4225, 39.8262. Accuracy depends on your coordinates; GPS coordinates are usually accurate within a few meters.

    Is this tool free to use?

    Yes, it is free, runs fully in your browser, and needs no signup.