MATHEMATICS & NUMBERS · FREE ONLINE TOOL

Diamond Problem Calculator

Find two real or complex numbers from their sum and product.

Use the calculator

Formula and methodology

If the required sum is s and product is p, solve t² − st + p = 0. The two numbers are the roots, with discriminant s² − 4p.

How to use this calculator

  1. Enter the values in the fields shown above.
  2. Check the order, sign and number of terms before calculating.
  3. Select Calculate to see the results and intermediate values.

Worked example

A sum of 7 and product of 12 gives the pair 4 and 3.

Assumptions and limitations

This is an educational mathematics tool. It uses the formula and input limits shown on this page. Results are computed in your browser and should be checked independently for formal coursework or specialist applications.

Updated: 17 November 2026. Inputs are processed in your browser.

Frequently asked questions

What does this calculator show?

Find two real or complex numbers from their sum and product.

Are my inputs uploaded?

The calculation runs locally in your browser. Form values are not submitted to Friendly Calculator by this tool.

Can I use the result for academic work?

Yes, as a learning aid. Review the displayed method and confirm that it matches the convention required by your course or application.