Put the cost calculator on your own site
The itemized cost calculator for Turkish citizenship by investment may be embedded on another site. One iframe, no sign-up, no API key, no tracking script. The figures stay current because the tool is served from our domain, not copied onto yours.
The single condition: the attribution line inside the embed, which links tothe calculator on ralegal.com.tr, stays visible and clickable.
1. Paste the iframe
Drop this where you want the calculator to appear. It is responsive and fills the width of its container, down to roughly 320px.
<iframe
id="ralegal-cost-calculator"
src="https://ralegal.com.tr/embed/cost-calculator"
title="Turkish citizenship cost calculator by RA Legal, Istanbul"
loading="lazy"
style="width:100%;height:1240px;border:0"
></iframe>
<p style="font-size:13px">
<a href="https://ralegal.com.tr/tools/citizenship-cost-calculator" target="_blank" rel="noopener">Data and calculator by RA Legal, Istanbul</a>
</p>The visible link under the iframe is optional belt-and-braces: the attribution already sits inside the embed. Some site owners prefer it in their own markup so the credit survives even if the iframe fails to load.
2. Optional: auto-resize
The calculator grows and shrinks as the route and family size change. These twelve lines listen for the height the embed posts and size the iframe to match, so there is never an inner scrollbar or a block of empty space.
<script>
// Auto-resize the RA Legal calculator iframe to fit its contents.
// Paste this anywhere after the iframe.
window.addEventListener('message', function (event) {
if (event.origin !== 'https://ralegal.com.tr') return;
var data = event.data;
if (!data || data.type !== 'ralegal-embed-height') return;
var frame = document.getElementById('ralegal-cost-calculator');
if (!frame) return;
frame.style.height = data.height + 'px';
});
</script>It checks event.origin before touching the iframe, so no other frame on your page can resize it.
Live preview
This is the real embed, loaded in an iframe on this page exactly as it would load on yours, with the resize listener attached.
Direct link: /embed/cost-calculator
Options and behaviour
| Setting | What it does |
|---|---|
| theme | Query parameter on the iframe src. Omit it for the light palette on a transparent background, or add ?theme=dark for a dark host page. The embed never reads the visitor OS setting, so it cannot flip unexpectedly. |
| height | 1240px is a safe starting value that fits the full table on a narrow column. With the resize script in place the value is replaced on load, so it only matters before the first message arrives. |
| postMessage payload | The embed posts { type: "ralegal-embed-height", source: "ralegal-cost-calculator", height: <integer pixels> } to the parent window on load, on resize and after every input change. Filter on event.origin, as the snippet above does. |
| request a height | If your listener loads after the iframe, post { type: "ralegal-embed-request-height" } to the iframe contentWindow and the embed answers with its current height. |
| network and tracking | The embed loads no webfonts, no analytics, no third-party requests and sets no cookies. One HTML document, styles inline, nothing else. |
Dark host page? Use https://ralegal.com.tr/embed/cost-calculator?theme=dark as the iframe source.
Licence, in plain words
- Who may embed it. Personal sites, blogs, relocation and property portals, brokerages, forums. No charge, no sign-up, no registration of your domain with us.
- Attribution stays. The line "Data and calculator by RA Legal, Istanbul" and its link to ralegal.com.tr must remain visible and clickable. Do not cover it, crop it, set it to zero opacity, or add
rel="nofollow"through a proxy. - Load it, do not copy it. Embed the live URL rather than reproducing the markup or the figures as static content. That is what keeps the numbers on your page identical to ours after a fee schedule changes.
- No endorsement implied. Embedding does not make you a client of the firm, and it does not mean the firm has reviewed or endorses your site. We do not ask for a link exchange and we do not pay for placement.
- Not legal advice. The tool gives typical ranges for planning, dated inside the embed. It is not a quote and not advice on any specific case, and you should not present it to your readers as either.
- We may update or retire it. Figures are revised as fee schedules change. If the embed is ever retired, the URL will redirect to the calculator on our own site rather than break your page.
Questions about the embed, or a request to use the underlying figures some other way:info@ralegal.com.tr.
Embed questions, answered
Can I use the calculator on a commercial website?
May I change the figures or the wording?
Will the embed slow my page down?
Who keeps the figures current?
About the source
The calculator is maintained by RA Legal, a law firm in Şişli, Istanbul whose founding partner is registered with the Istanbul Bar Association, working in English, Turkish, Chinese, Arabic, Urdu, Russian and Bengali on Turkish citizenship by investment, immigration and residence or work permits, real estate, banking and finance, corporate matters and litigation. The programme figures behind the tool rest on Law No. 5901 art. 12(1)(b) and art. 20 of the implementing Regulation: USD 400,000 in real estate by official SPK appraisal, or a USD 500,000 deposit, government bonds or investment fund holding, each held for three years.
More tools: the full set, including theroute comparison and thedocument checklist generator. Embeds for those are not published yet; write to us if one would be useful.