# Inheritance (Mīrāth): Can you embed the inheritance calculator on a site?

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

> The /mirath/embed view can be framed only by Quran Gallery pages, not other websites. How to open it with a family filled in, and what to link to instead.

No: the embedded inheritance calculator at `qurangallery.com/mirath/embed` cannot be placed on another website, because the site sends a same-origin framing policy and browsers block it inside an iframe elsewhere. It is a small, results-first view that runs the same engine with the same exact fractions, designed to sit inside Quran Gallery's own pages. To point someone at a case from your site, link to the full calculator with the family in its address.

## Where you'll see it

The embedded calculator is what appears inside the **Quran Gallery chat assistant**. When you describe a family to the assistant — "a wife, two sons and a daughter" — it can show you the shares right there in the conversation, instead of sending you away to the full page.

## What it shows

The result comes first: if the family is already known, the shares appear immediately. The panel contains:

- **The division**: a sentence stating the case, the **School of law** switch, the share mosaic with a note on ʿawl, radd or a named case when one applies, the **Amounts** / **Fractions** switch, and the shares list with each heir's **Why** and the heirs who receive **No share**;
- **How this was worked out**, folded, with the same **Steps**, **Schools** and **Family tree** tabs as on the full page; when the schools differ, **Compare the four schools** opens the **Schools** tab;
- **Adjust the family & estate**, which opens the form to change the deceased, the estate, with funeral costs, debts and a bequest, and the heirs;
- **Open the full calculator**, at the top, which carries the family on screen over to the full page.

When no estate value has been given, it opens in **Fractions**, so it never implies a money figure you didn't provide.

## What it leaves to the full page

The embedded view has no examples and no print button. For those, use **Open the full calculator**, which carries over the family, the school and the estate value. Funeral costs, debts and a bequest are not part of that link, so enter them again on the full page. See [Understanding the results](https://qurangallery.com/docs/mirath/understanding-the-results) for everything the full page shows.

## Opening it with a family filled in

The embedded view reads the same address parameters as the full calculator — `g`, `madhab`, `estate`, `currency` and one parameter per relation — described in [Using the calculator](https://qurangallery.com/docs/mirath/using-the-calculator#sharing-a-family-by-link). For example:

```text
https://qurangallery.com/mirath/embed?g=male&madhab=hanafi&wife=1&son=2&daughter=1
```

opens straight to the shares for a man survived by a wife, two sons and a daughter, in fractions because no estate is given.

## Where it can be placed

The embedded view can be framed only by Quran Gallery's own pages: the site sends a same-origin framing policy, so browsers block it inside an iframe on another website. To point someone at a case from elsewhere, link to the full calculator with the family in its address.

## The same caution applies

Whether you use the full page or the embedded view, the result is an educational estimate.

> Inheritance is exact and the responsibility is serious. The calculator follows the classical Sunni rules and shows its evidence, but always confirm a real, binding distribution with a qualified scholar.

## Related pages

- [The calculator](https://qurangallery.com/mirath) — the full experience.
- [Understanding the results](https://qurangallery.com/docs/mirath/understanding-the-results) — how to read what either view shows.

## Next steps

- [Open calculator embed code](https://qurangallery.com/mirath/embed)
- [How to calculate Islamic inheritance step by step](https://qurangallery.com/docs/mirath/using-the-calculator)
- [Islamic inheritance FAQ: awl, radd, debts, wills](https://qurangallery.com/docs/mirath/faq)
- [Islamic inheritance calculator for the four schools](https://qurangallery.com/docs/mirath/overview)
