ForHosting KIT · Math

Factoring trinomials calculator

x² + 5x + 6 factors into (x + 2)(x + 3). Enter the three coefficients and get the pair of binomials a classroom expects, found with integer pairs or the AC method; when no rational pair exists, it says irreducible instead of inventing roots. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
A
1
B
5
C
6
You get
Trinomial
x^2+5x+6
First binomial
(x+2)
Second binomial
(x+3)
Factored form
(x+2)(x+3)

Factoring a quadratic trinomial is the Algebra 1 skill of rewriting a times x squared plus b times x plus c as a product of two linear binomials whenever rational coefficients allow it. Students first hunt integer pairs for monic trinomials, then use the AC method when the leading coefficient is not one. This factoring trinomials calculator accepts the three finite coefficients, searches for a binomial pair whose product recovers the original polynomial, and returns that pair in a stable classroom order. When no such pair exists it reports the trinomial as irreducible instead of inventing square-root or complex factors that the lesson has not introduced. A zero leading coefficient is rejected because the expression would no longer be quadratic.

How factoring a trinomial ax² + bx + c actually works

A quadratic trinomial is a second-degree polynomial written with three terms: a times x squared, b times x, and a constant c. Factoring it means producing two linear binomials whose product is that polynomial, optionally with an integer content that absorbed a greatest common factor of the three coefficients.

For a monic starter (a equals one) the classroom method is trial of integer pairs that multiply to c and add to b: x squared plus five x plus six becomes open parenthesis x plus two close parenthesis times open parenthesis x plus three close parenthesis because two times three is six and two plus three is five.

When a is not one, the AC method asks for a pair of integers that multiply to a times c and add to b, then splits the middle term and factors by grouping. Difference-of-squares examples such as x squared minus nine become open parenthesis x minus three close parenthesis times open parenthesis x plus three close parenthesis. Perfect-square trinomials such as x squared plus six x plus nine become open parenthesis x plus three close parenthesis times open parenthesis x plus three close parenthesis.

This calculator performs the same search exactly, after clearing any denominators so fractional coefficients stay rational. It does not invoke the quadratic formula and it does not return factors that involve square roots or the imaginary unit. x squared minus two is therefore reported irreducible here even though it factors over the reals, because those factors are not rational. x squared plus x plus one is irreducible over the rationals as well: its discriminant is not a perfect square, so no binomial pair with rational coefficients exists.

What you enter and what you get back

Send three required finite numbers under the fields a, b, and c, standing for the coefficients of a x squared plus b x plus c. Coefficients that are too large or too finely fractional to clear into safe integers are rejected instead of approximated. On success the body echoes a, b, and c and a compact trinomial string.

When no such pair exists, irreducible is true, factored is false, and a note explains that the trinomial does not factor into rational binomials; that is a successful answer, not an error, matching the Algebra 1 instruction to state that a trinomial is prime.

Classic checks include a equals one, b equals five, c equals six yielding open parenthesis x plus two close parenthesis times open parenthesis x plus three close parenthesis; a equals two, b equals seven, c equals three yielding open parenthesis x plus three close parenthesis times open parenthesis two x plus one close parenthesis; a equals six, b equals thirteen, c equals six yielding open parenthesis two x plus three close parenthesis times open parenthesis three x plus two close parenthesis; and a equals one, b equals one, c equals one reported irreducible.

Failed validation is not billed.

Where a factoring-trinomials calculator earns its keep

Secondary-school Algebra 1, GED prep, and first-year college courses assign factoring-trinomials drills by the dozen because the skill sits between multiplying binomials and the later quadratic formula. A tutor or learning platform can post a, b, and c and compare a student's two binomials against a deterministic oracle instead of marking a mathematically valid but differently ordered pair as wrong: the response includes both printable strings and the four raw integers so a grader can accept either order as the same factorization.

Exam-item generators need an honest irreducible flag when a prompt does not factor, because a worksheet that asked students to factor a trinomial should not silently turn into a quadratic-formula item with square roots. Engineering notebooks and contest warm-ups sometimes need the integer binomial form of a quadratic constraint before a sign chart or a partial-fraction step, and refusing a zero leading coefficient keeps those pipelines from labeling a linear model as quadratic.

Algebra 1 homework checks

Students enter a, b, and c from a factoring-trinomials worksheet and compare their binomial pair against a deterministic factorization, or confirm that the trinomial is irreducible.

LMS and exam answer keys

Generate exact binomial pairs for factorable items and an irreducible flag for prime trinomials, matching a rubric that does not accept square-root factors.

Worksheet and item-bank scripts

Bulk-check classroom factoring items without pulling a full computer-algebra library, and reject a equals zero so linear expressions never sneak in as quadratics.

How do I factor a trinomial ax² + bx + c?

Send finite numbers a (non-zero), b, and c.

What does irreducible mean here?

No pair of non-constant binomials with rational coefficients multiplies to ax²+bx+c. x²+x+1 and x²+1 are irreducible over the rationals. That is a successful result, not an error.

Why must a be non-zero?

If a is zero the expression is linear (bx+c), not a quadratic trinomial.

Does this return square-root or complex factors?

No. Factoring trinomials as taught in Algebra 1 stays over the rationals. x²−2 is reported irreducible here even though it factors over the reals.

What does the factoring trinomials calculator cost?

The browser tool is free and runs locally.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/math/factoring-trinomials

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/math/factoring-trinomials \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"a":1,"b":5,"c":6}'
{
  "a": 1,
  "b": 5,
  "c": 6
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "math.factoring_trinomials",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

How factoring a trinomial ax² + bx + c actually works

The search is deterministic integer arithmetic on a cleared model, so identical coefficients always produce the same JSON with no clock, no random seed, and no network call.

Input contract, response shape, and what counts as an error

Each field may arrive as a JSON number or as a numeric string; missing fields, empty strings, NaN, and Infinity fail with invalid_input and name the offending field so a form can highlight it. Coefficient a must be a non-zero finite number: if a is zero the expression is linear, not a quadratic trinomial, and the request is rejected rather than silently factored as a binomial times a constant. When a rational binomial pair exists, irreducible is false, factored is true, and the payload includes first_binomial, second_binomial, a concatenated factored_form, the four integers first_x, first_const, second_x, and second_const, plus content when the scale is an integer (or content_num and content_den when a denominator remains). Successful API calls use the published base of $0.002 per item.

Where a factoring-trinomials calculator earns its keep

Because the implementation is a pure parse engine there is no model, no outbound network, and no clock; every successful API call costs the published $0.002 per item and failed validation does not consume prepaid balance.

Read the full KIT documentation →