# Inheritance (Mīrāth): Deduct funeral costs, debts and bequests before shares

Source: https://qurangallery.com/docs/mirath/debts-and-bequests-first

> Funeral costs, debts and a bequest of up to one third are paid before heirs' shares. How the calculator deducts them and where the schools differ.

Before any heir receives a share, the calculator deducts three claims from the estate in this order: funeral costs, debts, then a bequest (waṣiyya) of at most one third of what is left. Only the remainder is divided. Open **Deduct funeral costs, debts or a bequest**, just under the estate value at [qurangallery.com/mirath](https://qurangallery.com/mirath), to enter them.

## Steps

1. Enter the **Estate to divide**.
2. Open **Deduct funeral costs, debts or a bequest**.
3. Fill **Debts owed**, **Funeral costs** and **Bequest (waṣiyya)**. Type any bequest figure: the calculator never lets it exceed the third.
4. Read **What remains** (the estate after funeral costs and debts) and **To divide**, the amount left for the heirs.

## Why do debts come before the bequest?

The app explains that the Qurʾan sets the shares after any bequest or debt (an-Nisāʾ 4:11–12), that debts owed to people are paid in full before any bequest in all the schools, and that the costs of washing, shrouding and burial come first. Read it on [Before the shares: funeral costs, debts and bequests](https://qurangallery.com/mirath/rules/estate-deductions).

## How large can a bequest be?

A bequest may not exceed a third of what remains after debts. The app cites the ḥadīth of Saʿd ibn Abī Waqqāṣ (Ṣaḥīḥ Muslim, no. 1628) and notes that anything beyond a third takes effect only if the heirs consent after the death. Several bequests, and how the schools divide a third that is too small, are on [Bequests: the one-third limit and the heirs' consent](https://qurangallery.com/mirath/rules/bequests-and-consent).

## Can an heir receive a bequest?

The Ḥanafī, Shāfiʿī and Ḥanbalī schools let a bequest to an heir take effect if the other heirs consent after the death. The Mālikī school holds it void even then. The same page covers when the heirs' consent counts.

## What about unpaid zakat and other debts to God?

The schools differ on whether a debt to God is paid when the will does not mention it. [Debts to God: unpaid zakat, kaffārah and ḥajj](https://qurangallery.com/mirath/rules/debts-to-god) gives each school's rule with its source and a worked example. If you want to draft a will, the app has an [Islamic will builder](https://qurangallery.com/mirath/wasiyyah).

## Limits

- The calculator does not decide whether a will or a consent is legally valid in your country. That is for its courts, notaries or registries.
- Gifts made in a final illness are explained on [their own rule page](https://qurangallery.com/mirath/rules/gifts-in-final-illness), but the calculator has no input for them.
- Debts, funeral costs and the bequest are not part of a shared link; enter them again.

## Next steps

- [Open the calculator](https://qurangallery.com/mirath) and enter an estate with deductions.
- [Using the calculator](https://qurangallery.com/docs/mirath/using-the-calculator) walks through every field.
- [The rules of inheritance](https://qurangallery.com/docs/mirath/inheritance-rules)
- [Islamic inheritance FAQ](https://qurangallery.com/docs/mirath/faq)
