Skip to content
BetterDL

3-variable K-map

Also called: three-variable K-map, 3-variable Karnaugh map, 3-variable map, 2x4 K-map

An 8-cell Karnaugh map for a function of A, B and C. In this course rows are A and columns are BC in Gray order: 00, 01, 11, 10.

A 3-variable K-map has 2³ = 8 cells, arranged as 2 rows by 4 columns. Rows are A; columns are BC in gray code order:

  • A = 0: m0 m1 m3 m2
  • A = 1: m4 m5 m7 m6

Notice m3 comes before m2, and m7 before m6. That is the Gray order of the columns, 00, 01, 11, 10. To place a minterm, write it in binary: the first bit picks the row and the last two pick the column. m3 = 011 sits in row A = 0, column BC = 11.

Every cell has exactly three neighbors: one above or below, and one on each side, counting the wrap between the first and last columns.

Group sizes and term lengths:

  • 1 cell → 3 literals
  • 2 cells → 2 literals
  • 4 cells → 1 literal (a full row, a 2×2 square, or the four end cells)
  • 8 cells → the constant 1

Some books draw this map tall instead, with BC down the side and A across the top. The groups and answers come out the same; only cell positions differ (see k map layout).

A\BC00011110
0
1m0
0m1
0m3
1m2
1
0m4
1m5
1m7
0m6

Worked example

Example

F = Σm(0, 2, 5, 7)

Simplify the function in the map above.

  1. 1.

    Place the 1s: m0 (row 0, column 00), m2 (row 0, column 10), m5 (row 1, column 01), m7 (row 1, column 11).

  2. 2.

    m0 and m2 sit at opposite ends of the top row, which wrap. Pair: A = 0 and C = 0 fixed → .

  3. 3.

    m5 and m7 sit side by side in the bottom row. Pair: A = 1 and C = 1 fixed → .

  4. 4.

    F = . B never matters: F is 1 exactly when A and C are equal.

Common mistakes

  • Placing m2 in the third column. The third column is BC = 11, which holds m3 and m7.

  • Missing the wrap between columns 00 and 10, as with m0 and m2 above.

  • Expecting 9 or 6 cells. Three variables always give 2³ = 8 cells.

Practice 3-variable K-map

Interactive questions with instant feedback and a worked solution for every wrong answer.

Learn it step by step

3-variable K-map is taught in Karnaugh Maps.