Hijri Date Converter
Calculate hijri date easily with our free tool. Get practical results, tips, and comparisons for everyday decisions. Get results you can export or share.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
Hijri Date Converter
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: JD = floor(365.25 × (Y+4716)) + floor(30.6001 × (M+1)) + D + B − 1524.5 (Gregorian to Julian Day)
Worked example — March 21, 2026 ≈ 1 Ramadan 1447 AH
Formula
JD = floor(365.25 × (Y+4716)) + floor(30.6001 × (M+1)) + D + B − 1524.5 (Gregorian to Julian Day)
The conversion uses Julian Day Numbers as an intermediate step. First, the Gregorian date is converted to a Julian Day Number using the standard astronomical formula. Then, the Julian Day Number is converted to the Hijri calendar using the tabular Islamic calendar algorithm, which accounts for the 30-year leap cycle of the lunar calendar.
Worked Examples
Example 1: Gregorian to Hijri Conversion
Problem:Convert March 21, 2026 (Gregorian) to the Hijri calendar date.
Solution:Using the Julian Day Number algorithm: 1. Calculate JD for March 21, 2026 2. Convert JD to Hijri calendar 3. Result: approximately 1 Ramadan 1447 AH (Note: actual date may vary by 1-2 days based on moon sighting)
Result:March 21, 2026 ≈ 1 Ramadan 1447 AH
Example 2: Hijri to Gregorian Conversion
Problem:Convert 10 Dhul Hijjah 1446 AH (Eid al-Adha) to Gregorian.
Solution:Using the reverse Julian Day Number algorithm: 1. Calculate JD for 10 Dhul Hijjah 1446 2. Convert JD to Gregorian calendar 3. Result: approximately June 6, 2025
Result:10 Dhul Hijjah 1446 AH ≈ June 6, 2025
Frequently Asked Questions
What is the Hijri calendar and how does it work?
The Hijri calendar (also known as the Islamic or lunar calendar) is a purely lunar calendar consisting of 12 months that alternate between 29 and 30 days. The calendar began with the migration (Hijra) of Prophet Muhammad (peace be upon him) from Mecca to Medina in 622 CE. A Hijri year has approximately 354 or 355 days, making it about 11 days shorter than the Gregorian solar year. This means Islamic dates cycle through the Gregorian seasons over a period of roughly 33 years. The calendar is essential for determining Islamic religious observances including Ramadan, Hajj, and the two Eid celebrations.
What are the twelve months of the Islamic calendar?
The twelve months are Muharram (sacred month), Safar, Rabi al-Awwal (month of the Prophet's birth), Rabi al-Thani, Jumada al-Ula, Jumada al-Thani, Rajab (sacred month), Shaban, Ramadan (month of fasting), Shawwal (month of Eid al-Fitr), Dhul Qadah (sacred month), and Dhul Hijjah (month of Hajj and Eid al-Adha). Four months — Muharram, Rajab, Dhul Qadah, and Dhul Hijjah — are considered sacred months in which warfare was traditionally forbidden. Each month begins with the sighting of the new crescent moon, which is why exact dates can vary by one or two days between different regions.
Why do Hijri dates sometimes differ between countries?
Hijri dates can differ between countries because the start of each Islamic month traditionally depends on the physical sighting of the new crescent moon (hilal) by reliable witnesses. Since the moon is visible at different times in different locations due to geographical position, weather conditions, and atmospheric clarity, one country may announce the start of a new month a day before or after another. Some countries use astronomical calculations to predict moon visibility, while others rely strictly on physical sighting. Saudi Arabia, for example, uses the Umm al-Qura calendar based on calculations, while many other countries still rely on local moon sighting committees.
How accurate is the mathematical Hijri-Gregorian conversion?
Mathematical conversion algorithms like the Tabular Islamic Calendar provide a systematic approximation but can differ from actual observed dates by one to two days. This is because the actual Islamic calendar is based on moon sighting rather than fixed mathematical rules. The tabular calendar uses an alternating pattern of 29 and 30 day months with a leap day added in specific years of a 30-year cycle (years 2, 5, 7, 10, 13, 16, 18, 21, 24, 26, 29). For historical dates, the margin of error may be larger. For precise religious observances, always refer to your local Islamic authority or mosque for confirmed dates.
What are the most important dates in the Islamic calendar?
Key dates include the 1st of Muharram (Islamic New Year), 10th of Muharram (Ashura — a day of fasting commemorating various prophetic events), 12th of Rabi al-Awwal (Mawlid al-Nabi or Prophet's Birthday according to the majority of Sunni scholars), 27th of Rajab (Isra and Miraj — the Prophet's night journey), 15th of Shaban (Shab-e-Barat), the entire month of Ramadan for fasting, 27th of Ramadan (approximate date of Laylat al-Qadr), 1st of Shawwal (Eid al-Fitr), 8th-13th of Dhul Hijjah (Hajj days), and 10th of Dhul Hijjah (Eid al-Adha). These dates serve as spiritual milestones throughout the Islamic year.
References
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer · Editorial policy
Related Calculators
🧮Islamic Date Calculator
Calculate days between two Hijri dates or convert Hijri date ranges to Gregorian.
🧮Islamic Months Calculator
Convert between Hijri month names, numbers, and corresponding Gregorian date ranges.
🧮Jerib to Square Meter Converter
Calculate jerib to square meter converter with inputs, formulas, and instant results.
🧮Afn Currency Converter
Calculate afn currency converter with inputs, formulas, and instant results.
🧮Afghan Solar Calendar Converter
Calculate afghan solar calendar converter with inputs, formulas, and instant results.
🧮Land Area Converter Afghanistan
Calculate land area converter afghanistan with inputs, formulas, and instant results.
🧮Biswa to Square Meter Converter
Convert between biswa, jerib, and square meters for Afghan land measurement.
🧮Seer to Kilogram Converter
Convert between Afghan seer, kilogram, and pound for market trade measurements.