ForHosting KIT · Developer Utilities

Complex conjugate calculator

The complex conjugate calculator takes a complex number given as its real and imaginary parts and returns its conjugate: the same real part with the sign of the imaginary part flipped, so a + bi becomes a − bi.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

The conjugate is the single most-used transformation in complex arithmetic — it is how you divide complex numbers, compute a modulus squared, or extract a magnitude from a Fourier coefficient. You send two finite numbers and receive the conjugate in rectangular form plus a readable display string. The same deterministic code runs free in your browser and through the paid API, so what you test on this page is exactly what your integration receives.

What the complex conjugate actually is

A complex number is a pair of real numbers written as a + bi, where i is the imaginary unit satisfying i² = −1. Its complex conjugate, usually written with an overline or a star, is a − bi: the real part stays exactly as it is and the imaginary part changes sign. On the complex plane this is a reflection across the real axis, which is why the conjugate preserves everything about a point except which side of that axis it sits on. Two properties make it indispensable. First, the product of a number with its own conjugate is always a non-negative real number: (a + bi)(a − bi) = a² + b², the square of the modulus. Second, conjugation distributes over the four arithmetic operations, so the conjugate of a sum, difference, product or quotient is the sum, difference, product or quotient of the conjugates. This calculator applies the definition directly, with no iteration and no approximation, so the answer is deterministic: the same inputs always produce byte-identical outputs, whether the computation happens in your browser tab or on our edge servers through the API.

Why the conjugate is everywhere in complex arithmetic

The most famous use of the conjugate is division of complex numbers. To compute (a + bi) / (c + di) you multiply numerator and denominator by the conjugate of the denominator, turning the denominator into the plain real number c² + d² — without the conjugate there is no closed-form division at all. The same trick rationalizes any expression with a complex denominator. The conjugate also defines the modulus: |z|² = z·conj(z), so any time you need the magnitude of a complex value you are one conjugate away from it, and in numerical code that route avoids a square root until the very end. In more advanced settings the conjugate keeps showing up: a matrix with real eigenvalues must have them closed under conjugation, the roots of a real polynomial come in conjugate pairs, and the Fourier transform of a real signal is conjugate-symmetric. Because flipping a sign is trivially cheap, the value of this endpoint is not the arithmetic itself but the contract: strict validation that both parts are finite numbers, a normalized output with no negative zero, and a display string you can show to a human without reformatting.

Where conjugates show up in practice

Conjugates are working notation in several engineering disciplines, not an academic curiosity. In digital signal processing, multiplying a spectrum by the conjugate of another spectrum is the core of cross-correlation and matched filtering, and the power spectral density of a signal is the pointwise product of its Fourier transform with its own conjugate. In communications engineering, a matched filter is literally the time-reversed conjugate of the transmitted pulse, and conjugate beamforming uses conjugates of channel estimates to aim a signal at a receiver. In electrical engineering, maximum power transfer requires a load impedance equal to the conjugate of the source impedance — the rule every RF engineer memorizes as conjugate matching. In quantum mechanics, probabilities are amplitudes multiplied by their conjugates. In all of these fields the transformation itself is one sign flip, and the value of an API is that it can be embedded in a validation step, a teaching tool or a code generator without reimplementing the convention. Because the capability is stateless and deterministic, it is safe to cache, safe to retry and safe to run in parallel across as many inputs as your workload requires.

Divide complex numbers by hand-checkable steps

Get the conjugate of the denominator first, then multiply numerator and denominator by it to turn a complex division into real arithmetic.

Compute power and correlation in a DSP pipeline

Feed Fourier coefficients through the API to build conjugate products for power spectra and cross-correlation without maintaining the convention yourself.

Build a teaching or homework tool

Generate exact conjugates for exercises on modulus, conjugate pairs of polynomial roots and reflection across the real axis.

What does it cost?

$0.002 per request via the API. It is also free to run in your browser on this page — the same code executes both ways.

What is the conjugate of a real number?

A real number is its own conjugate: if the imaginary part is zero, the result equals the input. For example, the conjugate of 5 + 0i is 5 + 0i.

What input does it expect?

Two finite numbers: real for the real part and imag for the coefficient of i. Either part missing, non-numeric or non-finite (NaN, Infinity) is rejected with an invalid input error.

What exactly does the response contain?

The real and imaginary parts of the conjugate, an echo of the input, and a display string such as "3 - 2i" that you can render without reformatting.

How is the conjugate related to the modulus?

Multiplying a complex number by its conjugate gives the square of its modulus: (a + bi)(a − bi) = a² + b², always a non-negative real number.

Is the result deterministic?

Yes. The computation is a single sign flip with no randomness, clocks or network access, and negative zero is normalized to zero, so identical inputs always produce identical output.

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/conjugate

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/conjugate \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"real":3,"imag":2}'
{
  "real": 3,
  "imag": 2
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "math.conjugate",
  "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.

Read the full KIT documentation →