How a multiplexer selects one of many inputs, its Boolean expression, building large multiplexers from small ones, and using a multiplexer to implement any Boolean function, the way GATE asks it.
A multiplexer (MUX) is a combinational circuit that connects one of data inputs to a single output, chosen by select lines. It is a digitally controlled switch, also called a data selector.
For a 2:1 MUX with select :
For a 4:1 MUX with selects ( is the MSB):
In general , where is the -th minterm of the select variables. So the MUX is a decoder on the select lines whose outputs gate the data inputs, followed by an OR.
MUX
Select lines
Data inputs
2:1
1
2
4:1
2
4
8:1
3
8
:1
An enable (strobe) input, often active low, forces when the chip is disabled; it is used to combine chips into bigger multiplexers.
The demultiplexer (DEMUX) does the opposite: one data input is routed to one of outputs. A 1:4 DEMUX is the same circuit as a 2-to-4 decoder with enable, with the enable used as the data input.
When a question gives a MUX in a circuit, always check which select line is the MSB; swapping and swaps and .
A 4:1 multiplexer: the select code S1 S0 (S1 is the MSB) picks which data input reaches Y.
2. Implementing a Boolean function with a multiplexer
A MUX is a universal function generator. Two standard methods:
Method 1: :1 MUX for an -variable function. Put all variables on the select lines. Tie to 1 if minterm is in the function, else to 0. No extra gates are needed.
Method 2: :1 MUX for an -variable function. Put variables on the selects and use the remaining variable (say ) at the data inputs. For each select combination, look at the pair of minterms it covers ( and ):
for
for
Data input
0
0
0
1
1
0
1
1
Method 2 is the usual GATE pattern: a 4:1 MUX implements any 3-variable function, and an 8:1 MUX implements any 4-variable function, given the last variable and its complement.
Reading a given MUX (analysis). Write with the select variables, substitute the data inputs, and simplify. For a quick answer, list the minterms: for each select code, the data input tells you which values of the remaining variable make .
Use a truth table with the select variables as the leading columns, in the order the question gives them as MSB to LSB. Getting this order wrong is the most common error.
3. Building larger multiplexers from smaller ones
A large MUX is built as a tree of smaller ones. With :1 MUXes for an :1 MUX ( a power of ):
the first level has MUXes, all driven by the low-order select bits;
each next level has as many, driven by the next select bits;
the count is .
Build
From
Count
8:1
2:1
16:1
2:1
16:1
4:1
64:1
4:1
For 2:1 MUXes the count is simply .
When is not a power of , the last level is partly used; count the MUXes level by level: on the first level, then again, until one remains.
An alternative uses the enable inputs: two 8:1 MUX chips with a 1-of-2 enable (driven by and ) and an OR gate make a 16:1 MUX.
Each MUX level adds its propagation delay, so a tree of depth has delay about times one MUX delay on the select-to-output path.
4. The 2:1 MUX as a universal gate
With constants 0 and 1 available, a single 2:1 MUX () gives the basic gates:
Function
(NOT)
1
0
(AND)
0
(OR)
1
0
1
XOR needs the complement of a variable: , , gives . Without a free , a second MUX makes it (as NOT). Since NOT and AND (or OR) are possible, the 2:1 MUX is functionally complete: any Boolean function can be built only from 2:1 MUXes and constants.
Cascades show up often in GATE: a chain of 2:1 MUXes where the output of one feeds a data or select input of the next. Solve it stage by stage, writing each output as a Boolean expression before moving on.
Useful patterns:
, gives (select does not matter).
, , gives .
, , gives .
Formulas to remember
2:1 MUX
4:1 MUX
General MUX = minterm of the select variables
Select lines neededFor an :1 multiplexer
Number of k:1 MUXes for an N:1 MUX a power of ; for 2:1 MUXes this is
Common mistakes
Swapping the MSB and LSB select lines, which interchanges I1 and I2 and gives the wrong function.
Counting MUXes in a tree as N/k only, forgetting the later levels.
Writing the data input as C when the pair of minterms needs C complement (F = 1 only when C = 0).
Assuming a 2:1 MUX can make XOR from A and B alone; it needs a complemented variable.
In cascaded MUXes, substituting the final output before simplifying each stage, which leads to algebra errors.
Worked examples
Try each step yourself, then reveal the working.
Example 1: A 3-variable function on a 4:1 MUX
numerical
Implement with a 4:1 MUX, using (MSB) and as the select lines.
Step 1: Group the minterms by the select code $AB$.
Try it on paper first.
Example 2: Reading a 4:1 MUX circuit
numerical
A 4:1 MUX has , , and data inputs , , , . Find the function in simplest form.
Step 1: Write the output with the select minterms.
Try it on paper first.
Example 3: Counting MUXes in a tree
numerical
How many 2:1 MUXes are needed for a 32:1 MUX, and how many 4:1 MUXes for a 64:1 MUX?
Step 1: Count 2:1 MUXes level by level.
Try it on paper first.
Example 4: Cascaded 2:1 MUXes
conceptual
MUX 1 has , , , output . MUX 2 has , , , output . Find .
Step 1: Write MUX 1's output.
Try it on paper first.
Previous year questions
3 official GATE EC questions on this topic, newest first.
10 questions: up to 3 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.