# Inheritance (Mīrāth): How to calculate Islamic inheritance step by step

Source: https://qurangallery.com/docs/mirath/using-the-calculator

> Enter the deceased, the estate, funeral costs, debts and bequest, then each surviving heir and the school of law. The shares update as you go.

To calculate Islamic inheritance in the [calculator](https://qurangallery.com/mirath), choose whether the deceased was a man or a woman, enter the estate, then tap each surviving relative. The shares update instantly: there is no calculate button and nothing to submit.

## Step 1 — Who passed away?

Choose **A man** or **A woman**. This single choice does one thing only: it decides whether the surviving spouse is a wife (widow) or a husband (widower). It does not change any other share.

### Enter the estate

Below that, under **The estate**, set the **Estate to divide**. Type a currency symbol in the small box (up to three characters — `$`, `£`, `Rs`, and so on) and the total amount beside it. If you would rather not work in money at all, leave the default value and switch the results to **Fractions**.

### Funeral costs, debts & bequest (waṣiyya)

An estate is not divided immediately. Open **Deduct funeral costs, debts or a bequest**, just under the estate, to enter what must be settled first:

| Field                 | What it covers                                                    |
| --------------------- | ----------------------------------------------------------------- |
| **Debts owed**        | Everything owed to people and to God.                             |
| **Funeral costs**     | The cost of a dignified burial.                                   |
| **Bequest (waṣiyya)** | A gift the deceased left to someone who is _not_ already an heir. |

Funeral costs and debts come off first, then the bequest. A bequest is capped at **one third** of what remains after them — the calculator enforces that limit automatically, so you can type any figure and it will never exceed the third. **What remains** shows the estate after funeral costs and debts, and **To divide** shows exactly how much is left to share among the heirs. The [estate deductions](https://qurangallery.com/mirath/rules/estate-deductions) page explains the order.

> Adopted children, step-children and unmarried partners are not heirs under the fixed-share system. A person can still provide for them through the bequest (waṣiyya), within its one-third limit.

## Step 2 — Who survives them?

Tap each family member who is alive, using the plus and minus controls to set how many of each there are. The shares recalculate the moment you change anything. Use **Clear** to start the family over. While you enter a family, an heir that someone else already excludes is marked **No share.** with the reason. On a phone, the result sits below the form, and a bar fixed to the bottom of the screen keeps the running total in view with a **See the shares** button that jumps to it.

The spouse, the children and the parents are shown first. Everyone else sits behind **Add more relatives** to keep the form calm: grandparents, siblings, great-grandchildren, the nephews, uncles and cousins, and the other relatives (dhawū al-arḥām).

The tables below give the usual rule for each heir. Every heir has its own page under [Heirs](https://qurangallery.com/mirath/heirs), with each situation computed by the calculator and the points where the schools differ.

### The spouse

| Heir                  | Rule                                                     |
| --------------------- | -------------------------------------------------------- |
| **Husband**           | ½ with no child, ¼ with a child.                         |
| **Wife** (up to four) | ¼ with no child, ⅛ with a child; shared among the wives. |

If the deceased was a man you enter a **Wife** (up to four). If a woman, you enter a **Husband**.

### Children and grandchildren

| Heir                                                            | Rule                                                                                                                                                          |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Son**                                                         | Takes the residue and blocks the siblings. With daughters, a son takes the share of two.                                                                      |
| **Daughter**                                                    | ½ alone, ⅔ if two or more; becomes a residuary alongside a son.                                                                                               |
| **Son's son** (grandson)                                        | Stands in for a son when none survives; blocked by a son.                                                                                                     |
| **Son's daughter** (granddaughter)                              | Like a daughter when there is no nearer child; ⅙ beside one daughter; blocked by a son, or by two or more daughters unless a son's son makes her a residuary. |
| **Great-grandson / great-granddaughter** (son's son's children) | The same rules one generation further down.                                                                                                                   |

### Parents

| Heir       | Rule                                                                                                                                                                                         |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Father** | ⅙ with a child; otherwise takes the residue.                                                                                                                                                 |
| **Mother** | ⅓, reduced to ⅙ with a child or two or more siblings. With a spouse and the father only, ⅓ of what the spouse leaves ([al-ʿUmariyyatān](https://qurangallery.com/mirath/rules/umariyyatan)). |

### Grandparents

| Heir                                       | Rule                                                                            |
| ------------------------------------------ | ------------------------------------------------------------------------------- |
| **Father's father** (paternal grandfather) | Stands in for the father when he is absent; with siblings the schools differ.   |
| **Father's mother** (paternal grandmother) | ⅙ (shared with the maternal grandmother); excluded by the mother or the father. |
| **Mother's mother** (maternal grandmother) | ⅙ (shared with the paternal grandmother); excluded by the mother.               |

### Siblings

Siblings are split into three lines, because each follows entirely different rules.

| Heir                               | Rule                                                                                                                                                    |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Full brother** (same parents)    | Takes the residue; blocked by a son, a son's son or the father. The grandfather blocks him in the Ḥanafī school and shares with him in the other three. |
| **Full sister** (same parents)     | ½ alone / ⅔ if two or more; a residuary beside a brother or a daughter.                                                                                 |
| **Paternal brother** (same father) | Like a full brother, but also blocked by a full brother.                                                                                                |
| **Paternal sister** (same father)  | Like a full sister; ⅙ beside one full sister; blocked by a full brother.                                                                                |
| **Maternal brother** (same mother) | ⅙ alone / ⅓ shared equally; blocked by a child or son's child, the father or the grandfather.                                                           |
| **Maternal sister** (same mother)  | Shares equally with the maternal brothers, with no two-to-one split.                                                                                    |

### Nephews, uncles and cousins

The full and paternal nephew (a brother's son), the full and paternal uncle (the father's brother) and the full and paternal cousin (that uncle's son) are residuary heirs (ʿaṣaba) in that order of precedence: the first one present takes the residue, and any nearer residuary excludes them all.

### Other relatives (dhawū al-arḥām)

A daughter's son and daughter, a full sister's son and daughter, the maternal grandfather, the maternal uncle and aunt, and the paternal aunt inherit **only when no heir but a spouse is left**. Otherwise they are shown as excluded. The schools divide among them differently; see [dhawū al-arḥām](https://qurangallery.com/mirath/rules/dhawu-al-arham).

## Choosing a school of law

At the top of **The division** panel, a four-way **School of law** switch picks Ḥanafī, Mālikī, Shāfiʿī or Ḥanbalī, and the shares change as you switch. For almost every family the four schools give the same answer, and the calculator says so: _"All four Sunni schools agree on this family."_ When they differ, it says _"The schools differ on this family."_ and offers **Compare the four schools**, which opens a side-by-side table explained in [Understanding the results](https://qurangallery.com/docs/mirath/understanding-the-results#comparing-the-four-schools). The [schools page](https://qurangallery.com/mirath/schools) lists what each school does differently.

## Starting from an example

To see the calculator in action first, use **Start from an example**, the button beside the page heading. The empty division panel also shows four starting families, and **All examples** opens the full list. There are ready-made families — a wife with two sons and a daughter, a husband with three daughters, a wife with both parents, both parents with a son, a mother with a daughter, a husband with two full sisters, a grandfather with two brothers, and a husband, mother, two maternal brothers and a full brother — so you can see a full result immediately and then adjust it.

> Tip: examples are the fastest way to learn the tool. Load one, watch the shares appear, then change a relative or two and see how the numbers respond.

## Sharing a family by link

The page address always describes the family on screen, so copying it from the address bar shares the exact case: whoever opens it sees the same family, school and estate. The parameters are:

| Parameter                                         | Meaning                                                                                                                                                               |
| ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `g=male` or `g=female`                            | The deceased (left out, it is inferred from the spouse).                                                                                                              |
| `madhab=hanafi` / `maliki` / `shafii` / `hanbali` | The school of law.                                                                                                                                                    |
| `estate=100000`                                   | The estate value.                                                                                                                                                     |
| `currency=£`                                      | The currency symbol, up to three characters (`$` when left out).                                                                                                      |
| `son=2`, `wife=1`, `full_sister=1`, …             | One parameter per relation, named as on the [heir pages](https://qurangallery.com/mirath/heirs) (for example `grandson`, `paternal_grandmother`, `maternal_brother`). |

For example, [`https://qurangallery.com/mirath?g=male&madhab=hanafi&estate=100000&wife=1&son=2`](https://qurangallery.com/mirath?g=male&madhab=hanafi&estate=100000&wife=1&son=2) opens a man survived by a wife and two sons. Debts, funeral costs and the bequest are not part of the link; enter them again after opening it.

## Next steps

- [Open inheritance calculator](https://qurangallery.com/mirath)
- [Awl, radd and the fixed shares explained](https://qurangallery.com/docs/mirath/inheritance-rules)
- [Read your inheritance result: shares and steps](https://qurangallery.com/docs/mirath/understanding-the-results)
- [Islamic inheritance calculator for the four schools](https://qurangallery.com/docs/mirath/overview)
