How Iftar Time Is Calculated, and Why Two Apps Disagree
Iftar is Maghrib: the moment the sun's disc has completely set at your latitude and longitude. It is computed from your coordinates and the date, with the sun's centre placed about 0.83 degrees below the flat horizon to allow for the sun's own width and for atmospheric refraction. Most differences between apps come from small safety margins and from using different coordinates for the same city.
Namaz Time calculates Maghrib on your phone from your own coordinates, and lets you nudge it to match your masjid. Free, works offline.
The one number behind Iftar
Sunset is a geometry problem with a well-known answer. Given your latitude, your longitude and the day of the year, the sun's declination and the equation of time fix where the sun sits in the sky at any instant, and sunset is the moment its upper edge touches the horizon. Because the sun is a disc rather than a point, and because the atmosphere bends its light upward near the horizon, the calculation puts the sun's centre roughly 0.83 degrees below the geometric horizon at that moment. Everything else is arithmetic.
What the calculation needs
- Latitude and longitude. Longitude sets the clock time of sunset; latitude sets how fast it drifts through the year.
- The date, which gives the sun's declination and the equation of time.
- Your time zone and whether daylight saving is in force on that date.
- A horizon correction, the 0.83 degrees above, and optionally your elevation if you are well above the surrounding land.
- A safety margin, where the publisher adds one to three minutes after geometric sunset.
Nothing in that list needs the internet, which is why a prayer app can produce the whole month's timetable on the device once it knows where you are.
Why two apps show a different Iftar
- Coordinates. A city is not a point. The two apps may be using the city hall, the airport or your GPS fix, and 20 km east is about a minute earlier.
- Safety minutes. Some methods add 1–3 minutes after sunset so that Maghrib is never announced early.
- Definition. Sunni practice generally takes Maghrib at sunset; Shia practice waits until the redness has left the eastern sky, roughly 15 to 20 minutes later.
- Elevation and horizon. An app that accounts for altitude will give a later sunset on a hill than one that assumes sea level.
- Rounding. Rounding down versus to the nearest minute produces a one-minute gap that looks like an error and is not.
- Time zone data. Around a daylight-saving change, a stale time zone database is worth a full hour of confusion.
How much does your exact location matter?
| City | Iftar, first fast | Iftar, last fast | Average fast |
|---|---|---|---|
| Delhi (Delhi) | 6:06 pm | 6:25 pm | 12 h 52 min |
| Mumbai (Maharashtra) | 6:35 pm | 6:46 pm | 13 h 2 min |
| Lucknow (Uttar Pradesh) | 5:53 pm | 6:11 pm | 12 h 53 min |
Three cities in one country and one time zone, and the Iftar times are minutes apart because they sit at different longitudes and latitudes. Over the month, Iftar in Delhi moves 19 minutes later between the first fast and the last, which is why a single printed time for a whole state is only ever an approximation.
What this site calculates with
| Where you are | Method used for Fajr and Maghrib |
|---|---|
| India, Pakistan, Bangladesh | University of Islamic Sciences, Karachi (Fajr at 18°) |
| Saudi Arabia | Umm al-Qura University, Makkah (Fajr at 18.5°) |
| UK, Europe, Australia | Muslim World League (Fajr at 18°, Isha at 17°) |
| United States and Canada | Moonsighting Committee (18° / 18° with seasonal adjustment) |
| Indonesia and Malaysia | 20° / 18° (Kemenag / JAKIM) |
These are the same defaults the Namaz Time app applies by region, so a timetable on this site and the one on your phone agree.
Match your masjid, do not argue with it
If your masjid announces Iftar a minute or two after your app, it is almost certainly a deliberate margin rather than a mistake. The practical answer is to adjust your app to your masjid's time and then stop thinking about it: the congregation breaking its fast together is worth more than a minute of precision. Namaz Time lets you shift each prayer individually for exactly this reason.
Timetables worked out this way
- Delhi Sehri and Iftar timetable
- Mumbai Sehri and Iftar timetable
- Karachi Sehri and Iftar timetable
- London Sehri and Iftar timetable
Questions
- Is Iftar at sunset or at Maghrib?
- In the majority Sunni view they are the same moment: the fast is broken when the sun has fully set, which is when Maghrib enters. Some methods add a one to three minute margin.
- Why is my app's Iftar a minute different from the mosque?
- Usually a safety margin or slightly different coordinates for the same city. Adjust the app to match your masjid.
- Can prayer times be calculated without the internet?
- Yes. Sunset depends only on your coordinates, the date and your time zone, so the whole month can be computed on the device.
- Does altitude change Iftar time?
- Slightly. From a high vantage point the sun sets a little later, so apps that use elevation show a later Maghrib.
- Why does Iftar get later every day in Ramadan?
- Because the days are lengthening through February and March in the northern hemisphere. In Delhi, Iftar moves 19 minutes later between the first fast and the last.
Sehri and Iftar for your city, azan alarms that ring on every phone, Qibla, offline. Or see the timetable for your city and when Ramadan starts.
Who publishes this
Each line links to where you can verify it, with the date we last read it. We do not publish reviews, customer names or sales figures here.
- Every Android app we publish is listed under one Google Play developer account. Source: Google Play developer page, read .
More from the blog
- How Long to Keep Tax Records in the US (and Store Digital Copies)
- Phone vs Dedicated Barcode Scanner for a Small Warehouse: When Is a Phone Enough?
- How to Read Google Play's Data Safety Section (and Why Offline Apps Have Less to Hide)
- Delete Blurry Photos, Screenshots and Big Videos Safely: A Backup-First Checklist for Android and iPhone
- How to Send Customers a Statement of Account That Gets Paid
- The End-of-2026 Phone and Money Reset: A Checklist
- Open Password vs Permissions Password on a PDF: What Each Does, and Why to Unlock Your Own Files Offline
- How Freelancers Can Log Business Expenses All Year So Tax Time Is Not a Scramble
- Which Odoo Versions Are Supported in 2026? When to Upgrade
- How to Print Barcode Labels for Products, Lots and Stock Locations
- Upload Rejected Because the PDF Is Password Protected? Here Is the Fix
- How to Split a Group Bill and Still Know Who Owes You
- Free Up Space on Android: Duplicate Files and Photos
- How to Track Expenses Without Connecting Your Bank Account
- Why Your Payslip PDF Has a Password, and How to Keep a Copy Without One
- Prayer Times While Travelling: Time Zones, Flights and Qasr
- How to Export Your Expenses to CSV and Use Them in a Spreadsheet
- How to Track Cash Spending When You Have No Receipts
- Weekly Budget or Monthly Budget? How to Pick the One You Will Keep
- Google Account Storage Full? What Counts Toward 15 GB
- Imsak vs Fajr: Which Time Do You Stop Eating Sehri?
- How to Audit App Permissions on Android in Ten Minutes
- Find and Cancel Every Subscription on Your Android Phone
- A 30-Day Plan to Prepare for Ramadan 2027
- A 60-Minute Year-End Money Review for 2026
- Ramadan 2027 Calendar by Country: Start Dates and Why They Differ
- Android Developer Verification and Sideloading in 2026
- Cyber Monday 2026: Set a Holiday Spending Limit First
- Ramadan 2027 Fasting Hours by City: Longest and Shortest Days
- Laylat al-Qadr 2027: Which Nights, and Dates for Each
- When Is Eid al-Fitr 2027? Date, Prayer and What to Prepare
Dates follow the Umm al-Qura calendar and can differ by a day where the month starts after local moon sighting. For religious questions, ask your imam.