# Converting expression to only use NAND gates

How would I go about converting this Boolean expression so that it would only use NAND gates in its circuit?

A ⋅ ¬B ⋅ ¬D + ¬A ⋅ B ⋅ ¬C ⋅ D

• Take deMorgan's on it. – StainlessSteelRat Dec 9 '18 at 22:17

If your expression was: $$\f = ¬A ⋅ ¬B ⋅ C ⋅ D + A ⋅ B ⋅ ¬C\$$
$$¬A ⋅ ¬B ⋅ C ⋅ D + A ⋅ B ⋅ ¬C$$ deMorgans: Invert expression, change + to ⋅ and invert terms.
$$\overline {\overline {¬A ⋅ ¬B ⋅ C ⋅ D} ⋅ \overline {A ⋅ B ⋅ ¬C}}$$