Scientific Converters Precise unit conversions for science & engineering.

    Loading…

    DFT Calculator

    The 4-point DFT of {1, 2, 3, 4} starts with X[0] = 10, then −2 + j2, −2 and −2 − j2.

    Up to 64 samples, e.g. 1, 2, 3, 4.

    X[0] (sum of the samples) =

    10

    Number of points N
    4
    Energy Σ|x[n]|²
    30
    Parseval check Σ|X[k]|²/N
    30
    4-point DFT, X[k] = Σ x[n] e^(−j2πkn/N)
    kX[k]|X[k]|Phase (°)
    010 + j0100
    1-2 + j22.8284271135
    2-2 + j02180
    3-2 − j22.8284271-135
    Step-by-step solution
    1. X[k] = Σₙ x[n] e^(−j2πkn/4), k = 0 … 3
    2. X[0] = 1 + 2 + 3 + 4 = 10
    3. For N = 4 the twiddle factors are 1, −j, −1, j

    DFT Formula

    X[k] = Σ x[n] e^(−j2πkn/N)

    k = 0 … N − 1; X[0] is the sum of the samples

    Worked Example

    The 4-point sequence x[n] = {1, 2, 3, 4}:

    1. X[k] = Σₙ x[n] e^(−j2πkn/4), k = 0 … 3
    2. X[0] = 1 + 2 + 3 + 4 = 10
    3. For N = 4 the twiddle factors are 1, −j, −1, j

    Energy Σ|x[n]|²: 30 · Parseval check Σ|X[k]|²/N: 30

    4-point DFT, X[k] = Σ x[n] e^(−j2πkn/N)
    kX[k]|X[k]|Phase (°)
    010 + j0100
    1-2 + j22.8284271135
    2-2 + j02180
    3-2 − j22.8284271-135

    GATE tip

    For N = 4 the twiddle factors are 1, −j, −1, j, so X[1] = x₀ − jx₁ − x₂ + jx₃. Writing the 4 × 4 DFT matrix once saves time on every 4-point question.

    More Signals and Systems Calculators

    Frequently asked questions

    How do I check a DFT by hand?

    X[0] is the sum of the samples, X[N/2] is the alternating sum, and for real x[n] X[N − k] is the conjugate of X[k].

    Is the FFT different?

    No: the FFT is a fast algorithm for the same DFT, needing about N log₂ N operations instead of N².

    Sources

    Last reviewed: . Factors are stored exactly and computed with 50-digit decimal arithmetic. See how we verify conversion factors.

    Cite this page

    APA

    Scientific Converters. (2026, October 15). DFT Calculator. Retrieved October 25, 2026, from https://scientificconverters.com/calculators/dft-calculator/

    IEEE

    Scientific Converters, "DFT Calculator," scientificconverters.com. Accessed: Oct. 25, 2026. [Online]. Available: https://scientificconverters.com/calculators/dft-calculator/

    Send feedback

    Found a wrong value, a missing unit or an idea? Tell us. We read every message.

    What is it about?

    We store your message, the page you were on and your email if given. See the privacy policy.