
An SR latch is a basic memory element in digital electronics that stores binary data using Set and Reset inputs. This SR latch tutorial covers the truth table, circuit implementation, and working principle of basic, gated, and clocked SR latch variants.
Initially, after the introduction of transistors, engineers constructed simple latch circuits using transistors. After several stages of evolution, dedicated latches were built using logic gates like the NAND gate and NOR gate. These latches were used to store data, essentially binary data. The primary types of latches include SR latch, D latch, JK latch, and T latch. In this article, we’ll briefly take a look at the SR Latch, along with its Gated SR Latch and Clocked SR Latch versions.
What is an SR Latch?
The SR Latch, also known as the Set-Reset Latch, is a fundamental digital memory circuit that stores one bit of binary data using two inputs, namely Set (S) and Reset (R). When Set is activated, the latch outputs '1' (HIGH), and when Reset is activated, it outputs '0' (LOW). The stored value remains stable even after inputs are removed, making it a basic memory element. This latch can be built using either NOR or NAND gates, with the key difference being that NAND implementation uses inverted (active LOW) inputs compared to NOR gates.
Note: If a latch circuit, such as an SR Latch is edge-triggered using a clock pulse, it becomes a flip-flop. So, ideally latches and flip-flops are two different things and should not be confused for the same. In our case, if the SR latch is given a clock pulse it becomes a clocked SR latch, which is also called an SR Flip-Flop. If you are completely new to flip-flops and latches, check out our tutorial on Basics of Flip-Flops in Digital Electronics.
To summarize, the SR Latch’s input and outputs are,
- Set [S]-Input
- Reset [R]- Input
- Q - Output
Sometimes you may also see a Q̅, which is nothing but an inverted output of Q. In the image below, you can see the symbol and a simple SR Latch truth table. From the table, you can notice that the logic is straightforward since it's a memory element.

There are four possible logic states for this latch:
- When both inputs are LOW, the output remains unchanged. Initially, the output will be undefined (random), but after any other condition is applied, the “both LOW” state will retain the last output.
- When Set is LOW and Reset is HIGH, the output Q goes to the Reset state, which is LOW.
- When Set is HIGH and Reset is LOW, the output Q enters the Set state, which is HIGH.
- In the rare case where both Set and Reset are HIGH, the output Q becomes unstable due to the racing condition. Therefore, this state is considered invalid.
Below, you can see a working simulation of a simple SR Latch made using NAND gates, built using Proteus. You can notice how the output values Q and Q̅ change based on the inpput values S and R.

Now, let’s take a look at the Gated and Clocked versions of the SR Latch.
Gated SR Latch
For the most part, the gates SR Latch is similar to the standard SR Latch. The only difference is the addition of one extra input, known as Enable. Below, you can see the Gated SR latch truth table and symbol for better understanding.

It looks quite similar to the standard SR Latch. The Enable input allows us to enable or disable the latch, providing more control compared to the basic version. Below is a Gated SR Latch built using NAND logic gates in Proteus. This simulation will help you understand the concept clearly.

The logic here is generally the same as a standard SR Latch, with the only addition being the Enable input.
- If the Enable input is HIGH, the Gated SR Latch works as expected.
- If the Enable input is LOW, regardless of the S and R inputs, the output remains unchanged—in other words, the previous state is held.
Clocked SR Latch
The Clocked SR Latch, also known as the SR Flip-Flop, is very similar to the Gated SR Latch, except that the Enable input is replaced by a Clock input. Instead of a stable enable line, the output now depends on the rising or falling edge of the clock signal. This is called edge-triggered behavior.
Below, you can see the symbol and the SR Latch truth table for a better grasp of the concept.

So, this Clocked SR Latch is essentially an SR Flip-Flop. To learn more about this, you can check out the Flip-Flop in Digital Electronics article for additional information and practical demonstrations. You can also view the simulation result using Proteus in the simulation image below.

As mentioned earlier, the Clocked SR Latch is an edge-triggered device, which makes it more reliable for timed operations in sequential circuits. The working logic is slightly different from that of a regular latch circuit.
To keep it simple, here’s how it works:
- No Change (S = R = 0): The flip-flop retains its previous state.
- Set (S = 1, R = 0): Output Q becomes ‘1’ (Set).
- Reset (S = 0, R = 1): Output Q becomes ‘0’ (Reset).
- Invalid (S = R = 1): Both outputs (Q and Q̅) may become ‘1’, leading to instability. This condition is generally avoided in practical designs.
All these transitions happen only on the positive or negative clock edge, depending on the specific components used in the circuit.
This SR latch tutorial covered the fundamental working principle, truth table, and circuit diagrams of basic SR latch, gated SR latch, and clocked SR latch implementations. Understanding these digital logic building blocks is essential for sequential circuit design and memory applications in electronics. If you have any questions, leave them in the comment sections at the bottom of this page, and we will be happy to answer them. You can also join our community or forums to start a discussion.
Similar Tutorials on SR Flip Flops
If you did like to learn more about SR Flip-Flops, these tutorials include helpful diagrams, truth tables, and logic circuits to guide you through the concepts.
Clocked SR Flip Flop: Complete Guide with Circuit, Truth Table, and Working
Learn how Clocked SR Flip-Flops work using NAND and NOR gates. Includes truth tables, logic diagrams, and real-world timing applications.
SR Flip-Flop with NAND Gates: Circuit, Truth Table and Working
Learn how to build an SR Flip-Flop circuit using NAND gates. Understand the logic, truth table, working principle, and output behavior with a complete circuit diagram and explanation
What is Switch Bouncing and How to prevent it using Debounce Circuit
Learn how switch bouncing can affect SR Flip-Flop circuits and how to prevent false triggering using debounce techniques like RC filters and Schmitt triggers in digital logic systems.