Skip to content
Back to all articles
share calculationURL parametersprefilled calculator

How to Share a Prefilled Mathify Calculation with a Link

Add the numbers to the address and the calculator opens already filled in. How the mf_ parameters work and which pages support them.

6 min read

Short answer: on supported Mathify calculators you can put the inputs in the web address. Parameters start with mf_ followed by the field name, and the marker from=ai tells the page to apply them. For example, https://mathify.one/en/finance/compound-interest?mf_principal=10000&mf_rate=7&mf_years=10&mf_contribution=200&from=ai opens the Compound Interest Calculator with those four values filled in. Field names differ per calculator, so use the names below or the ones in the tool schema.

Why share a calculation as a link?

A screenshot of a result is hard to check. A link carries the inputs, so the other person sees the same numbers, can change one value and watch the answer move. That works well for a budget discussion, a homework check, a support reply or an answer from an AI assistant that you want to verify.

What does the link format look like?

A prefilled link has three parts:

  • The calculator page, such as https://mathify.one/en/finance/compound-interest. The en part is the language.
  • One mf_ parameter per input. The mf_ prefix keeps these values separate from anything else a page might use in its address.
  • The flag from=ai, which marks the link as a handoff. Pages that read values in the browser look for this flag before applying anything.

Put a question mark before the first parameter and an ampersand between the rest.

Which values does each calculator accept?

The field names come from each calculator. These are checked against the page code:

  • Compound Interest Calculator at /finance/compound-interest: mf_principal, mf_rate, mf_years, mf_contribution.
  • Loan Calculator at /finance/loan: mf_loanAmount, mf_interestRate, mf_loanTerm (in years).
  • Age Calculator at /date/age: mf_birthDate in the form YYYY-MM-DD.
  • Percentage Calculator at /math/percentage: mf_value and mf_total. A link with both opens the "X is what percent of Y" mode.

Not every calculator supports prefill yet, and the supported set grows over time. If a page ignores the parameters, it simply opens with its defaults. Nothing breaks.

Worked example: compound growth

Open https://mathify.one/en/finance/compound-interest?mf_principal=10000&mf_rate=7&mf_years=10&mf_contribution=200&from=ai and the page starts with 10,000 invested, a 7 percent annual rate, 10 years and 200 added each month. The page's compounding setting defaults to monthly with monthly contributions, so the defaults line up with this example.

We ran the calculator's own function with those numbers. The future value is about 54,713.58. Total contributions are 34,000, which is the 10,000 you started with plus 200 times 120 months. The interest earned is about 20,713.58.

You can open the Compound Interest Calculator and type the same four numbers to check it.

Worked example: a percentage link

The link https://mathify.one/en/math/percentage?mf_value=15&mf_total=850&from=ai asks "15 is what percent of 850". The answer is 15 divided by 850, times 100, which is about 1.76 percent. The Percentage Calculator has other modes too, including the percent of a number (15 percent of 850 is 127.5) and percent change.

What about calculators that show an answer straight away?

Some calculators are built from a published specification, and their pages render an "Answer for these inputs" block on the server when the address contains values. This version reads either mf_<field> or just <field>, and the mf_ version wins if both are present. It does not need the from=ai flag.

For example, the Division calculator at /math/division has fields named dividend and divisor. A link with mf_dividend=100 and mf_divisor=7 produces a quotient of 14.2857 and a remainder of 2. We checked that with the same function the page uses. Entering a divisor of 0 gives a "Division by zero" message instead of a number, and a non-numeric value gives an invalid-value message that names the field.

Because the answer is generated on the server, it is part of the page HTML rather than something added later by scripts. That helps tools that read a page without running JavaScript.

How do AI assistants use these links?

When an assistant runs a calculator through Mathify's tools, the result includes a url field, which is the page address with the inputs added as parameters, and a canonicalUrl field, which is the clean address without them. The clean address is the one to cite. The parameter version is a convenience for opening the calculator with values filled in. Whether that convenience works depends on the page, as described above, so keep the displayed inputs next to the answer. The REST guide shows the full response.

Privacy and safety of shared links

  • The numbers are in the address. Anyone who receives the link can read them. Messaging apps, email systems and browser history can keep links.
  • Do not put sensitive data in a link. Leave out account numbers, names and anything you would not paste into a public chat.
  • Prefilled values are not verified. A link is a starting point. Check the inputs on screen before you rely on the result.

Common mistakes

  • Using the wrong field name. mf_amount does nothing on a page that expects mf_loanAmount.
  • Forgetting from=ai. Pages that apply values in the browser need it.
  • Dropping the language segment. Follow the examples and keep a language such as en in the address.
  • Typing a date in a local format. Use YYYY-MM-DD for dates.
  • Sharing percent as a decimal. Use 7 for 7 percent, not 0.07, unless the field says otherwise.

Key takeaways

  • Add mf_ plus the field name for each input, then from=ai.
  • Field names are specific to each calculator, and not every page supports prefill.
  • Some pages also render the answer on the server when the address has values.
  • Treat links as shareable text, and keep sensitive numbers out of them.

FAQ

Do I need an account to share a link?

No. A link is just an address with parameters.

Will the link stay valid?

The address format is stable today, but calculators can be renamed or improved. If a link stops prefilling, open the calculator and enter the values by hand.

Can I build the link by hand?

Yes. Take the calculator address, add a question mark, then mf_field=value pairs separated by ampersands, and finish with from=ai.

Why did my link open with default values?

The page may not support prefill, a field name may be misspelled, or the from=ai flag may be missing. Compare your link with the examples above.

Are shared results financial advice?

No. They are the output of a formula on the numbers in the link. Confirm decisions about money with a qualified professional.

This article is for general information. It is not financial advice.

Topics:#share calculation#URL parameters#prefilled calculator#how mathify works

Related Articles

Ready to start calculating?

Use our free calculators to make data-driven decisions for your financial and health goals.

Explore Calculators