Math

Chinese Remainder Theorem Calculator

Live

Calculate smallest nonnegative solution from remainder | modulus.

About Chinese Remainder Theorem Calculator

Calculate smallest nonnegative solution from remainder | modulus. Enter remainder | modulus in a purpose-built chinese remainder theorem calculator interface designed for this subject. Pairwise congruences are combined with the extended Euclidean algorithm when the stated moduli are compatible. The result includes smallest nonnegative solution, combined modulus, combination steps, supporting detail, and clear units or diagnostics. Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements. Processing stays in your browser, and UtilityPages does not store the values you enter.

Set up Chinese Remainder Theorem Calculator

Workspace

Structured calculation

Follow the input-to-result path; the fields below remain the source of every value.

Complete the fields to prepare a result.

Enter remainder | modulus.

Chinese Remainder Theorem Calculator result

Enter the values above, then calculate to see a detailed result.

How Chinese Remainder Theorem Calculator works

Pairwise congruences are combined with the extended Euclidean algorithm when the stated moduli are compatible.

How it works

Pairwise congruences are combined with the extended Euclidean algorithm when the stated moduli are compatible. Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements.

Examples

Chinese Remainder Theorem Calculator worked example

Example input
{
    "congruences": "2|3\n3|5\n2|7"
}
Expected result
{
    "solution": "23",
    "combined_modulus": "105",
    "steps": [
        {
            "solution": "8",
            "modulus": "15"
        },
        {
            "solution": "23",
            "modulus": "105"
        }
    ]
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Frequently asked questions

How does the Chinese Remainder Theorem Calculator work?

Pairwise congruences are combined with the extended Euclidean algorithm when the stated moduli are compatible.

What information should I enter?

Enter remainder | modulus. Use values and units from the same scenario so the result is internally consistent.

What results does this tool provide?

It reports smallest nonnegative solution, combined modulus, combination steps, including intermediate context where it helps you review the answer.

What limitations should I know about?

Results depend on the entered assumptions, units, supported input range, and rounding. Review important decisions against authoritative requirements.