Somewhere in your city right now, the sky is doing quiet, precise work. Long before your alarm rings, a faint band of light begins climbing the eastern horizon — not sunrise, but something earlier and subtler, the "true dawn" that marks the moment Fajr begins. Most of us will sleep straight through it. Yet for over fourteen centuries, Muslims have organized entire days around moments exactly like this one: five appointments with prayer, set not by any clock or committee, but by the turning of the Earth itself.
That is the strange and beautiful thing about prayer times. They look like ordinary numbers on a screen — 05:12, 13:38, 17:04 — but each one is the answer to an astronomical question. Where is the sun, right now, relative to your patch of the planet? Ask that question in Agadir and in Amsterdam at the same instant and you get different answers, which is why your cousin abroad prays Maghrib while you're still finishing Asr. This article is a deep, honest tour of how those numbers come to be: the meaning behind each of the five prayers, the thousand-year history of Muslims measuring the sky, the actual astronomy and the famous "calculation methods" that make apps disagree with each other, and the modern location problems (including one sneaky VPN issue almost nobody talks about) that quietly break prayer times for millions of users. Along the way, I'll show you how we solved each of these problems while building the free prayer times tool you'll find on this page — a tool that detects your city instantly, supports 21 official calculation methods, and speaks six languages.
Grab a coffee. By the end, you'll never look at a prayer timetable the same way again.
Add This Prayer Times Widget to Your Own Website — Free Embed Code
Before we dive into the astronomy, a quick gift for the webmasters, mosque volunteers, and fellow bloggers reading this: the exact tool you see on this page is free to embed on any website. It arrives with everything discussed below already wired in — instant no-permission location detection with the VPN-proof timezone shield, all 21 calculation methods with smart per-country defaults, the live countdown, Hijri dates, and all six languages. Best of all, the snippet reads your site's own language setting (the lang attribute on your page) and serves each visitor the matching interface automatically, while the frame quietly resizes itself to fit the day's timetable — no scrollbars, no clipped rows, on any theme.
Method 1 — Direct embed (iframe)
Paste this exactly where you want the widget to appear. The small companion script handles the automatic language match and the self-adjusting height for you — just hit the copy button on the block:
<iframe id="tq_prayer-times" src="https://tools.tooliqo.co/prayer-times/?lang=en" title="Tooliqo" loading="lazy" scrolling="no" style="width:100%;max-width:100%;height:1223px;border:0;overflow:hidden;display:block;margin:0 auto;"></iframe>
<script>(function(){var i="tq_prayer-times";function R(){var f=document.getElementById(i);if(!f)return;window.addEventListener("message",function(e){var d=e.data;if(!d||typeof d.tqHeight!=="number"||d.tqHeight<50)return;try{if(f.contentWindow&&e.source&&e.source!==f.contentWindow)return;}catch(x){}f.style.height=(d.tqHeight+20)+"px";},false);}if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",R);}else{R();}})();</script>
Method 2 — Smart script (recommended)
Prefer zero configuration? Drop this single placeholder anywhere in your page and our loader does the rest — it builds the frame, matches the language, and manages the height. It's also the tidiest choice if you later add more Tooliqo tools to the same page:
<div class="tooliqo-tool" data-tool="prayer-times" data-lang="en"></div> <script src="https://tools.tooliqo.co/embed.js" async></script>
To pin a specific language instead of auto-detection, change lang=en in the address (or data-lang in Method 2) to ar, fr, es, zh, or hi. The widget is free for personal and commercial sites alike — we only ask that the small © Tooliqo credit beneath it stays visible, which is what keeps tools like this free for everyone. Now, back to the sky.
What the Five Daily Prayers Actually Are
If you're new to the subject — perhaps you're a revert, a student of comparative religion, or simply curious why your colleague steps away at oddly specific times — here is the foundation. Islam prescribes five obligatory daily prayers, collectively called salah (also spelled salat, and known as namaz across South Asia, Turkey, and the Persian-speaking world). Each prayer has a window of validity that opens at a precise astronomical moment and closes when the next one begins.
Fajr is the dawn prayer. Its window opens at true dawn — when the first horizontal whiteness spreads across the horizon — and closes at sunrise. It's often described as the hardest and the most beloved: the world is silent, and getting up for it is a small daily act of devotion that no one else sees.
Dhuhr is the midday prayer. It begins just after the sun crosses its highest point in the sky (a moment astronomers call solar transit, or solar noon) and starts to decline westward. Note that "noon" here almost never means 12:00 on your clock — more on that fascinating gap later.
Asr is the afternoon prayer, defined by shadows. When the shadow of an object grows to a certain length relative to the object itself, Asr has arrived. Two juristic schools measure this slightly differently, which is the source of one of the most common "why does my app disagree with the mosque" questions — we'll untangle it fully below.
Maghrib is the sunset prayer, beginning the moment the sun's disc fully slips below the horizon. It has the shortest comfortable window of the five, which is why many timetables gently nudge you not to delay it.
Isha is the night prayer, beginning when the last red-then-white glow of twilight has vanished and true darkness settles in. Together with Fajr, it forms the pair of prayers most tightly bound to the physics of twilight — and therefore the pair most affected by geography, season, and the calculation method your app quietly uses.
Between Fajr and Dhuhr sits sunrise (shurooq) — not a prayer itself, but a critical marker, because it ends the Fajr window and opens a short period in which prayer is discouraged. Good prayer-time tools always display it, and ours does.
Why five, and why these moments? Muslims understand the times as divinely appointed, mentioned in the Quran in verses that tie prayer to the decline of the sun, the approach of night, and the recitation of dawn (for example, Quran 17:78). But there's also an undeniable human rhythm to them: they bracket sleep, punctuate work, and force a pause exactly when the day's momentum would otherwise sweep you along. Ask anyone who prays regularly and they'll tell you the schedule stops feeling like an interruption and starts feeling like scaffolding.
A Thousand Years Before the App: How Muslims Measured the Sky
Here's a detail that surprises many people: for most of Islamic history, there were no printed timetables and certainly no notifications. So how did a city of a hundred thousand people pray on time?
In the earliest generation, the answer was direct observation. The Prophet Muhammad ﷺ and his companions in 7th-century Madinah watched the sky itself: the whitening horizon for Fajr, the shortening then lengthening shadow of a stick for Dhuhr and Asr, the disappearing sun for Maghrib, the fading twilight for Isha. The muezzin's call was, in a very literal sense, a broadcast of an astronomical observation.
But Islam spread fast — within a century, from the Atlantic coast of Morocco to the borders of China — and with it spread a practical scientific problem: cloudy days, indoor scholars, travelers, and the simple desire to know in advance. The response was one of the great, underappreciated scientific traditions of the medieval world: ilm al-miqat, the science of timekeeping.
By the 9th century, scholars in Baghdad's House of Wisdom — figures like al-Khwarizmi, the mathematician whose name gave us the word "algorithm" — were producing astronomical handbooks (called zij tables) that included prayer-time calculations for given latitudes. The mathematics required was serious: spherical trigonometry, solar declination tables, and corrections that European science wouldn't systematize for centuries.
Then came an institution I find genuinely moving: the muwaqqit. From roughly the 13th century onward, major mosques across the Mamluk and later Ottoman lands employed a professional mosque astronomer — a timekeeper — whose entire job was to compute prayer times, maintain instruments, and advise the muezzin. The most famous of them, Ibn al-Shatir, worked at the Umayyad Mosque in Damascus in the 14th century. He built a magnificent sundial for the mosque's minaret (a copy still stands there today) and, almost as a side effect of his day job, developed planetary models so sophisticated that historians of science have spent decades studying their relationship to the models Copernicus published a century and a half later. Read that again: some of the mathematics that reshaped humanity's view of the cosmos was developed, in part, so a city could pray Asr on time.
The instruments themselves tell the same story. Astrolabes — those beautiful brass discs you've seen in museums — routinely included prayer-time curves engraved right on the plate. Quadrants were designed specifically for miqat work. Pocket sundials made in Ottoman workshops folded qibla compasses and prayer curves into objects small enough to carry on a journey.
The printing press, and later the telegraph and radio, turned the muwaqqit's calculations into mass-produced annual timetables — the folded paper charts many of us remember taped inside a grandparent's kitchen cabinet. National religious authorities took over the muwaqqit's role: Egypt's Survey Authority, Morocco's Ministry of Habous and Islamic Affairs, Turkey's Diyanet, Saudi Arabia's Umm al-Qura committee. Each formalized its own parameters — and in doing so, planted the seeds of the "why do apps disagree" confusion we live with today. The smartphone didn't invent prayer-time calculation; it inherited twelve centuries of it, disagreements included.
The Astronomy: What Your App Is Actually Computing
Let's open the hood. Every prayer time on your screen is derived from two ingredients: where you are (latitude and longitude) and where the sun is (a function of the date and time). From these, a chain of well-understood formulas produces each prayer's moment. Here's the chain in plain language — no equations, I promise, just the ideas.
Dhuhr is the anchor. Everything starts from solar noon: the instant the sun crosses your local meridian and stands at its highest for the day. This is not 12:00 on your clock, for two reasons. First, time zones are wide political bands, while the sun moves continuously — if you live at the eastern edge of your zone, solar noon comes earlier than at the western edge (about four minutes of clock time per degree of longitude). Second, the Earth's orbit is slightly elliptical and its axis is tilted, so the sun runs up to about 16 minutes "fast" or "slow" against a perfect clock through the year — a correction astronomers call the equation of time. Combine both effects and solar noon in a real city might land at 12:44, or 13:21, or 11:58. When we were testing our prayer engine for Agadir, Morocco, solar transit fell at 12:44 UTC — a number the tool computes fresh every day, because it drifts daily.
Maghrib and sunrise are geometry. Sunset is the moment the sun's upper edge dips below the horizon, with a small standard correction for atmospheric refraction (the atmosphere bends light, letting us see the sun for a couple of minutes after it has geometrically set). Sunrise is the mirror image. These two are the least controversial times in the whole system — nearly every method on Earth agrees on them to within seconds.
Asr is a shadow ratio. Classical jurists defined Asr by shadow length: when your shadow equals your height plus whatever residual shadow you had at noon, Asr begins — that's the majority (Shafi'i, Maliki, Hanbali) position, often labeled "Standard." The Hanafi school waits until the shadow reaches twice your height plus the noon shadow, which pushes Asr roughly 40 to 70 minutes later depending on season and latitude. Neither is a rounding difference or an app bug; they are two legitimate juristic readings of the same prophetic descriptions. This is why any serious tool must offer an Asr setting — ours calls it the juristic (madhhab) option, and flipping it recalculates Asr instantly.
Fajr and Isha are twilight angles — and here the real divergence begins. Twilight isn't a switch; it's a dimmer. Astronomers slice it into bands: civil twilight ends when the sun is 6° below the horizon (streetlights come on), nautical at 12° (the horizon at sea disappears), and astronomical at 18° (the sky is fully dark for telescopes). True dawn — the horizontal whiteness that starts Fajr — and the disappearance of twilight that starts Isha both live somewhere in that 12°-to-19° zone, and pinning the exact degree requires human observation of a gradual phenomenon. Different committees of scholars and astronomers, observing under different skies (desert clarity versus humid haze versus light-polluted suburbs), settled on slightly different angles. That single fact explains the majority of disagreement between prayer apps worldwide.
Why times drift every single day. The Earth's tilt means the sun's daily arc constantly changes shape: in summer it rises earlier, climbs higher, sets later; in winter the opposite. So Fajr creeps a minute or two earlier each spring day, Isha stretches later, and the whole timetable breathes with the seasons. The farther you live from the equator, the bigger these swings. In Casablanca, Fajr moves across roughly a two-and-a-half-hour range through the year. In Oslo, the swing is so extreme that twilight-based definitions can fail entirely in midsummer — the sun simply never gets 18° below the horizon, and "true dawn" and "twilight's end" merge into a single pale night. Serious calculators handle this with high-latitude adjustment rules (our tool applies the widely used angle-based method automatically), estimating Fajr and Isha as proportional fractions of the night so residents of northern Europe and Canada still get workable, scholar-endorsed times instead of blanks or absurdities.
The 21 Methods: Why Riyadh, Cairo, and Chicago Compute Fajr Differently
Now we can decode the mysterious dropdown every prayer app hides in its settings. A "calculation method" is simply a named bundle of parameters — chiefly the Fajr angle and the Isha angle (or, in a few methods, a fixed interval instead of an Isha angle) — adopted by a religious authority or research body. Here are the most influential ones, with their actual numbers:
| Method (authority) | Fajr angle | Isha angle / rule | Commonly used in |
|---|---|---|---|
| Muslim World League (MWL) | 18° | 17° | Europe, Far East, parts of the US |
| ISNA (Islamic Society of North America) | 15° | 15° | USA and Canada |
| Egyptian General Authority of Survey | 19.5° | 17.5° | Egypt, Sudan, parts of Africa and the Gulf |
| Umm al-Qura University, Makkah | 18.5° | 90 min after Maghrib (120 in Ramadan) | Saudi Arabia |
| University of Islamic Sciences, Karachi | 18° | 18° | Pakistan, Bangladesh, India, Afghanistan |
| Morocco (Ministry of Habous) | 19° | 17° | Morocco, Mauritania |
| Turkey (Diyanet) | 18° | 17° | Turkey and Turkish communities |
| Singapore (MUIS) | 20° | 18° | Singapore; similar values in Malaysia (JAKIM) and Indonesia (Kemenag) |
| Russia (Spiritual Administration) | 16° | 15° | Russia and some northern communities |
| France (12° convention) | 12° | 12° | Parts of the French Muslim community |
Look at the spread on Fajr: from 12° to 20°. At mid-latitudes, each degree of twilight angle shifts the time by roughly four to eight minutes — so two perfectly correct apps can display Fajr times more than half an hour apart simply because one defaults to ISNA and the other to the Egyptian method. Neither is "wrong." They are answering the same question with different, authority-endorsed measurements of a gradual natural phenomenon.
Which should you use? The near-universal advice, and mine too: follow the method of the religious authority in your country, and when abroad, the local one — it keeps you synchronized with the mosques around you, which is half the point of communal prayer times. This is exactly why we didn't just dump 21 methods into a menu and walk away. Our tool ships with a country-to-method map: open it in Casablanca and it silently selects the Moroccan Ministry's 19°/17° parameters; open the very same page in Istanbul and it applies Diyanet; in Jakarta, Kemenag; in Toronto, ISNA. The full list — including Kuwait, Qatar, the UAE, Jordan, Tunisia, Algeria, Tehran, Portugal, and more, 21 methods in total — remains one tap away for anyone who wants to override the default, and your choice is remembered on your own device.
One more honest note about small discrepancies: even after matching the method, you may find your local mosque's printed timetable differs from any calculator by two or three minutes. Mosque committees often round times and add small precautionary margins (a practice called ihtiyat) — a minute or two after the astronomical Maghrib before breaking the fast, for instance. That's a feature of communal caution, not an error in the math.
The Problem Nobody Talks About: Your Location Is Lying to Your App
Here is where I want to share something we learned the hard way, because I've never seen a prayer-times article explain it properly — and it silently breaks results for a huge and growing group of users.
Every prayer time depends on latitude and longitude. Apps get those coordinates one of three ways, and each way fails differently.
GPS is accurate but expensive in trust. The browser or app throws up a permission popup, and studies of web behavior consistently show a large share of users reflexively deny it — on a site they just discovered, who can blame them? Deny it, and many prayer tools simply stall on an error message. That's a terrible first experience for something as simple as "when is Maghrib?"
IP geolocation is invisible but coarse. Your network address maps to a city-level guess with no popup at all. For prayer times, city-level is actually fine — being 15 kilometers off shifts times by well under a minute. This is why our tool leads with it: open the page and your city, country, and full timetable appear in about a second, no permissions, no friction.
But IP geolocation has a spectacular failure mode: the VPN trap. Millions of people now browse through VPNs, corporate network gateways, iCloud Private Relay, or travel eSIMs that route traffic through another country entirely. Your body is in Agadir; your IP address says Amsterdam. A naive prayer app will cheerfully compute Dutch prayer times — Fajr at 3-something in the morning in June, Isha near midnight — for a user sitting in Morocco. The user sees times that are hours wrong, assumes the tool is garbage, and leaves. We watched this exact scenario happen during testing: Moroccan device, Dutch exit node, absurd timetable.
Our fix is something we call the timezone shield, and I think it's genuinely novel in this space. Your operating system knows what timezone you've set your device to — and unlike your IP address, that setting travels with your body, not your traffic. So before trusting the network's location, the tool cross-checks: does the IP's timezone match the device's timezone? If they disagree (Amsterdam vs. Africa/Casablanca, say), the tool sides with your device, resolves your real region from it, and computes times for where you actually are — automatically selecting the Moroccan method along the way. It even remembers which timezone it made that decision under, so if you genuinely fly to the Netherlands next month, it notices the change and re-detects rather than stubbornly keeping you in Morocco. And for the pilots, sailors, and precision-lovers among us, a one-tap GPS button is still there, offering street-level accuracy the moment you choose to grant it — no nagging otherwise.
On top of all that sits an edge-detection layer for embedded copies of the tool: when the widget is served through our hosting, the visitor's city and country are read at the network edge in the same instant the page loads — zero external lookups, zero waiting, and the timezone shield still standing guard above it. It's the kind of plumbing users never see and always feel.
A Guided Tour of the Tool on This Page
Enough theory — let me walk you through what you'll actually experience, because every feature exists to answer a real question users asked us.
"Just show me the times." Open the page and, typically within a second, you'll see your flag, your city and country in your language, today's Gregorian and Hijri dates, and all six daily markers: Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha. No account, no popup, no cookie wall.
"Which prayer is next, and how long do I have?" The current period is highlighted, and a live countdown ticks toward the next prayer. When fewer than thirty minutes remain, the countdown shifts into an alert state — a quiet visual nudge that has saved more than one of our own Asr prayers during deep-focus work sessions.
"My mosque follows the Hanafi Asr / a different method / 12-hour clock." The settings row covers the four things people genuinely change: calculation method (all 21), Asr juristic school, 12/24-hour format, and a Hijri date adjustment of −1, 0, or +1 day — because the Islamic calendar is moon-sighting based, and your country's announced date can legitimately differ from the astronomical tables by a day, especially around Ramadan and the Eids. Every choice is stored only in your own browser.
"I don't read English." The interface speaks Arabic, English, French, Spanish, Chinese, and Hindi, with full right-to-left support for Arabic — and it auto-selects based on your device and the page, with a live switcher in the header. Even country names and number formats localize.
"Is it fast? Is it private?" Times for your exact settings are computed once per day and cached on your device, so repeat visits render instantly and gently spare the calculation servers. Nothing about you is stored on our side: no accounts, no profiles, no history. Your location is used in the moment, for the math, and that's the end of it.
"Can I put this on my own website?" Yes — the tool was engineered from day one to be embeddable anywhere with a small snippet, auto-sizing itself and auto-localizing for each visitor's country and language. Bloggers and mosque webmasters can serve accurate, method-correct times to a worldwide audience without writing a line of astronomy.
Practical Wisdom: Travel, Ramadan, and Edge Cases
Traveling across time zones is where prayer-time literacy pays off. Two separate things change when you land: your coordinates (new times) and, often, the locally followed method (new parameters). A tool that only fixes the first will leave you praying Fajr on Cairo's 19.5° angle while everyone around you in Chicago follows ISNA's 15°. Our auto-detection refreshes both — and the timezone shield means even airport Wi-Fi routed through another country won't fool it. (On the juristic side, travelers also have well-known concessions for shortening and combining certain prayers; the rules have conditions and school-specific details, so take that particular question to a knowledgeable local scholar rather than a settings menu.)
Ramadan raises the stakes on two times specifically. Suhoor must end and fasting begin at true dawn — Fajr — which makes the Fajr angle suddenly very practical. Some timetables print an extra "Imsak" line a few minutes before Fajr; understand it as a voluntary safety cushion, not a separate legal deadline. And iftar arrives at Maghrib, where those mosque-committee precautionary minutes we mentioned earlier are most commonly applied. If your app and your mosque differ by two minutes at sunset in Ramadan, now you know exactly why — and following the local mosque for iftar keeps the community breaking bread together.
Daylight saving time deserves one paragraph of reassurance: the astronomy never jumps, only the clock labels do. Any competent calculator (ours included) works from your device's timezone database, which already encodes every DST transition — including Morocco's distinctive practice of pausing DST during Ramadan. If your times ever look exactly one hour off, check the device's timezone setting before blaming the math; that's the culprit in nearly every case we've ever debugged.
Extreme latitudes, finally, are the frontier where all methods strain. North of roughly 48°, midsummer twilight can persist all night; above the Arctic Circle, the sun itself may not set for weeks. Scholars have endorsed several estimation approaches — nearest-latitude, middle-of-the-night, and the angle-proportional method our tool applies — and communities from Stockholm to Anchorage rely on them every summer. If you live in these regions, know that your timetable is a scholarly approximation by necessity, choose the convention your local community follows, and be at peace with it: the tradition has always preferred workable devotion over impossible precision.
Frequently Asked Questions
Why do two prayer apps show different times for the same city?
Almost always: different calculation methods (different Fajr/Isha angles), or a different Asr school setting. A 15° versus 19.5° Fajr angle alone can separate two correct apps by over twenty minutes. Match the method to your country's authority — or use a tool like ours that does it automatically — and the disagreement collapses to seconds.
What is the most accurate prayer time calculation method?
Honestly, "most accurate" is the wrong frame — Maghrib and sunrise are pinned by geometry everywhere, while Fajr and Isha depend on defining a gradual twilight, which is precisely what the methods are: careful, authority-endorsed definitions. The right question is "which method does my country's religious authority use?" — and the practical answer is to follow it, so your clock agrees with your mosque's.
Do I have to allow GPS for prayer times to work?
Not with our tool. It resolves your city instantly from the network — with the timezone shield guarding against VPN distortion — and city-level accuracy shifts prayer times by well under a minute. GPS remains available as a one-tap option if you want street-level precision.
Why is Fajr so early in summer?
Because true dawn tracks the sun's depth below the horizon, and in summer the sun spends the night barely below it at mid-to-high latitudes. The higher your latitude, the earlier that 15°–19.5° threshold is reached. It isn't your app drifting; it's the planet's tilt.
Is Maghrib the same as sunset?
Yes — Maghrib begins at astronomical sunset (with the standard refraction correction every calculator applies). If your mosque's card says two or three minutes later, that's a deliberate precautionary margin, most relevant for iftar in Ramadan.
Why is the Hijri date sometimes one day different from my country's announcement?
The Islamic calendar is anchored to moon sighting, and calculated tables can differ from a national sighting announcement by a day. That's exactly why the tool includes a −1/0/+1 Hijri adjustment — set it once to match your local authority and it stays put.
Does the tool work if I'm using a VPN?
Yes — and this is one of its quiet superpowers. The timezone shield detects the mismatch between your network's apparent country and your device's timezone, trusts the device, and computes times for where you actually are. Turn your VPN on and off and the timetable shouldn't flinch.
Are my settings or location stored anywhere?
Your preferences (method, Asr school, format, language, Hijri offset) live in your own browser's storage, nowhere else. Your location is used transiently for the day's calculation and isn't logged into any profile on our side.
Can the times be off by a minute or two?
Between rounding conventions, refraction models, and mosque precautionary margins, one-to-three-minute differences among perfectly good sources are normal. For fasting and prayer validity, following your local mosque's convention within that band is the traditional, sensible practice.
The Sky Is Still the Clock
Fourteen centuries separate a companion watching the horizon in Madinah from a phone quietly computing solar declination in your pocket, yet the two are doing the same thing: reading the sky to answer "is it time?" Everything in between — the muwaqqits and their minaret sundials, al-Khwarizmi's tables, Ibn al-Shatir's mathematics, the national committees and their angles — is one continuous, very human project of taking that question seriously.
The tool living on this page is our small contribution to that lineage: instant, method-correct, honest about its assumptions, respectful of your privacy, and hardened against the modern gremlins (looking at you, VPNs) that break lesser tools. Scroll up, watch your city's timetable appear, and try the countdown through one full day. And when you're facing the right way for that next prayer — or want to be — our companion Qibla Direction finder computes your exact bearing to the Kaaba with a live compass, sun calibration, and an interactive map. Both are free, both live in our growing collection of Islamic tools at Tooliqo, and both were built by people who use them five times a day.
May your times be accurate and your prayers accepted.
