Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Logical Implication (Conditional Statement)





Overview of Logical Implication Page

This page offers a structured exploration of logical implication, a core concept in propositional logic. It begins by defining implication formally and introducing common notations. A detailed truth table demonstrates how the implication p→qp\rightarrow q evaluates across all possible truth values. The page then outlines key properties of implication, including reflexivity, transitivity, contraposition, and material implication. To address frequent points of confusion, a section on common misconceptions clarifies ideas like vacuous truth and the asymmetry of implication. Finally, the page highlights the role of implication in mathematical proofs, showing how it is used in direct reasoning, contrapositive arguments, and proof by contradiction. Together, these sections form a clear foundation for understanding conditional logic in both theoretical and applied contexts.

Definition

A promise: "If it rains, I will take an umbrella." When has the promise been broken?
Check the four possible days: rain or no rain, umbrella or no umbrella.
Only one of the four days breaks the promise; on both dry days it is kept, whatever I carry.
it rains (p)I take an umbrella (q)promise broken?p → q
TTnoT
TFyesF
FTnoT
FFnoT
On a dry day the promise makes no demand, so nothing can break it. That is why p→qp \to q is true whenever pp is false.
An implication fails in exactly one case: p true and q false.
Reading "if pp then qq" as "pp causes qq" or as "pp and qq" misjudges the two rows where pp is false.
The definition
A logical implication p→qp \to q, also called a conditional, is the statement "if pp, then qq": it is false when pp is true and qq is false, and true in every other case.
Logical implication is a fundamental concept in logic and mathematics. It describes a conditional relationship between two statements.

Logical implication (p→qp→q) is a conditional statement meaning "if pp, then qq." It asserts that whenever pp (the antecedent or hypothesis) is true, qq (the consequent or conclusion) must also be true.
An implication expresses a dependency between two propositions, where the truth of the antecedent guarantees the truth of the consequent.
However, if pp is false, the implication is still considered to be true regardless of qq. This is a very important point that follows directly from the definition. We will see the meaning of it while dealing with implication truth table.
So "if it rains, I take an umbrella" is true on every dry day.
Implication is a statement about truth values, not about cause.
p→qp \to q can be true when pp and qq have nothing to do with each other: "if 2+2=52 + 2 = 5, then the moon is made of cheese" is true, because its antecedent is false.
Implication runs one way: p → q does not give q → p.
Taking an umbrella does not mean it rained: in the third row qq is true and pp is false, and the promise is still kept. The full table is in truth table for logical implication.
The rest of the page covers notation, the truth table, the properties of implication, common misconceptions, implication in proofs and in logic laws.

Implication Notation

Notation

Implication Notation

One arrow, two shafts, and a small library of English phrasings that all mean the same conditional — plus the one phrasing that reverses it.
The connectives and proposition letters come from propositional logic notation; the meta-level ≡\equiv from equivalence notation; the turnstile ⊢\vdash appearing in the laws table below belongs to the tautology page.
p→qp \to q
if p then q; p implies q
The conditional connective: p→qp \to q builds a formula from two others, with pp the antecedent and qq the consequent — Definition above. Being a connective, it has a truth value of its own, which the truth table below settles.
CasesThe arrow points from hypothesis to conclusion and never commutes — p→qp \to q and q→pq \to p are different formulas (the converse); the contrapositive ¬q→¬p\neg q \to \neg p is the one that always matches.
Do not confuseA claim that pp is true. The arrow asserts only the dependency — when pp is false the whole formula is true regardless of qq, the vacuous truth of Truth Table for Logical Implication below.
p⇒qp \Rightarrow q
p implies q — in the meta sense
The double shaft raises the claim a level: where →\to builds a formula, ⇒\Rightarrow typically states that the implication holds in every case — the same shaft convention equivalence notation applies to ↔\leftrightarrow and ⇔\Leftrightarrow.
CasesUsage is not universal — many texts write ⇒\Rightarrow for the plain connective and reserve nothing; when a source mixes both arrows, the shaft is meaningful, and when it uses only one, it is not.
Also writtenp⊃qp \supset q — the horseshoe of Principia-era logic, still met in older texts and philosophy; the syntax page lists it among the historical connective spellings.
Do not confuseSet containment. The horseshoe ⊃\supset is also superset — one glyph, two disciplines; between formulas it implies, between sets it contains.
p→qp \to q in words
the English phrasings of one arrow
The same formula answers to many readings — "if pp, then qq", "pp implies qq", "qq if pp", "pp is sufficient for qq", "qq is necessary for pp" — all naming p→qp \to q exactly, as the notation list in Definition above begins.
CasesNecessity and sufficiency divide the labour: the antecedent is sufficient, the consequent necessary — the phrasing chosen usually signals which side the writer cares about.
Do not confuse"pp only if qq". It sounds like the converse and is not — "only if" marks the consequent, so "pp only if qq" is p→qp \to q, while "pp if qq" is q→pq \to p; the two English words sit one word apart and point opposite ways.
DownloadPNG2×PDF
Notation · Cheat sheet
Propositional Logic Notation at a Glance
The marks from the notation cards across the propositional-logic pages: how each is read and what it means. Every group links to the full card on its page.
Syntax
P,Q,RP, Q, R · P1,P2P_1, P_2
proposition letters
Capital letters name atomic propositions; subscripts extend the supply.
¬  ∧  ∨  →  ↔\neg \; \wedge \; \vee \; \to \; \leftrightarrow
not; and; or; implies; if and only if
The five connectives: negation, conjunction, disjunction, implication, biconditional.
φ,ψ\varphi, \psi
phi and psi
Placeholders for whole formulas in the formation rules.
(φ∧ψ)(\varphi \wedge \psi)
parenthesised conjunction
Every binary connective brings its own parentheses; no precedence at this level.
ImplicationThis page
p→qp \to q
if p then q; p implies q
The conditional connective: antecedent pp, consequent qq.
p⇒qp \Rightarrow q
p implies q, in the meta sense
The double shaft claims the implication holds in every case; older texts write p⊃qp \supset q.
p→qp \to q in words
the English phrasings of one arrow
"if pp, then qq"; "pp is sufficient for qq"; "qq is necessary for pp"; "pp only if qq".
Equivalences
P≡QP \equiv Q
P is logically equivalent to Q
A claim about formulas: PP and QQ agree in every case.
P⇔QP \Leftrightarrow Q
P if and only if Q, in the meta sense
The double-shafted spelling of the same claim.
P=QP = Q
P equals Q
Boolean algebra’s spelling, where formulas denote values in {0,1}\{0, 1\}.
Tautology
⊤\top
top; verum; the true constant
Truth itself: a formula true under every assignment.
⊢P\vdash P
turnstile P; P is provable
The single turnstile: a derivation of PP exists in the proof system.
⊨P\vDash P
double turnstile P; P is valid
The double turnstile: PP is true under every assignment.
P≡⊤P \equiv \top
P is equivalent to the true constant
The third way to say that PP is a tautology.
Contradiction
⊥\bot
bottom; falsum; the false constant
Falsehood itself: a formula false under every assignment.
⊢¬P\vdash \neg P
the negation of P is provable
The proof-side way to declare PP a contradiction.
P≡⊥P \equiv \bot
P is equivalent to the false constant
The equivalence spelling of "contradiction".
Same marks, different job
→\to vs ⇒\RightarrowA connective inside a formula; a claim about formulas.
↔\leftrightarrow vs ≡\equivThe biconditional connective; logical equivalence in the metalanguage.
⊢\vdash vs ⊨\vDashProvable by the rules; true in every case.
⊃\supsetImplication in older logic texts; superset in set theory.
⊥\botThe false constant here; perpendicular in geometry.
Propositional Logic Notation at a Glance·/logic/propositional-logicLearn Math Class
  • •
    p→qp→q (standard notation)
  • •
    p⇒qp⇒q (sometimes used in formal logic)
  • •
    "If pp, then qq" (verbal expression)
  • •
    "pp implies qq" (another verbal expression)

Truth Table for Logical Implication

Logical implication (P→Q)(P → Q) is a fundamental operation in propositional logic, represented as "if P, then Q." This relationship is only false in one specific case: when the antecedent P is true but the consequent Q is false.
The truth table below shows all possible combinations of truth values for 2 variables:
PQP → QExplanation
TTTWhen P is true and Q is true, the implication is true.
TFFWhen P is true but Q is false, the implication is false.
FTTWhen P is false and Q is true, the implication is true.
FFTWhen P is false and Q is false, the implication is true.
The counterintuitive aspect is that P → Q is true whenever P is false, regardless of Q's value. This is called "vacuous truth". A helpful way to understand this is with a promise analogy: "If it rains, I'll bring an umbrella." If it doesn't rain, the promise remains unbroken whether I bring an umbrella or not.
Promise may be broken only if its condition has happened. In case the condition did not happen (last 2 rows, when PP is equal to false)- it can not be broken and the whole statement evaluates to true.
And to conclude this discussion, the rule of thumb with logical implication is that whenever the hypothesis is false-the overall expression evaluates to true.
AB
P → Q as the region ¬P ∨ Q

Read circle A as the cases where P is true and circle B as the cases where Q is true. P → Q fails only where P is true and Q is false: the part of A outside B. Everything else is shaded, which is exactly ¬P ∨ Q, the complement of A together with B. The whole region outside A is shaded too: when P is false the implication holds whatever Q is. Try other expressions on the Venn truth-table explorer.

The only unshaded piece is P true and Q false: the one row of the table where P → Q is false.
Fact: Most people turn the wrong cards
In Wason's 1966 card test, four cards show E, K, 4 and 7, and the rule says that a card with a vowel on one side has an even number on the other. Only E and 7 can hide a broken rule, yet fewer than 1 person in 10 picks that pair; the usual choice is E alone, or E and 4.
This single false row also decides how a conditional is tested. To check a claim of the form "if PP, then QQ" against real cases, the only cases worth examining are those that could turn out to have PP true and QQ false: cases where PP is known to hold, and cases where QQ is known to fail. A case with PP false, or with QQ already true, cannot break the claim, whatever it turns out to contain. Looking for cases that agree with the claim proves nothing; only a search for the false row can test it.


A special case worth noting is p→pp \rightarrow p, where the antecedent and the consequent are the same proposition. This implication is always true (it is a tautology), as seen directly in the truth table:
PPP → PExplanation
TTTWhen P is true, P → P is true.
FFTWhen P is false, P → P is still true.


See more truth tables for expressions involving implications here.
Or use this interactive truth table generator to evaluate your own expressions.

Properties of Implication

Logical implications have several important properties that define how they behave in reasoning and formal logic. These properties help establish relationships between statements, simplify logical expressions, and form the basis for proofs. Understanding these properties—such as transitivity, contraposition, and material implication—is essential for working with logical arguments and mathematical reasoning.
Here are some important properties of logical implication:
  • •
    Reflexivity:
    p→pp→p is always true for any proposition pp.
    This follows from the truth table because whenever
    the antecedent and the consequent are the same: p→pp→p is always true, since implication is only false when the antecedent is true and the consequent is false, and that simply can not happen here.
    The expression is always true (tautology).
  • •
    Transitivity:
    If p→qp→q and q→rq→r, then p→rp→r.
    Example
    "If it rains, the ground gets wet." (p→qp→q)
    "If the ground gets wet, the grass grows." (q→rq→r)
    Conclusion: "If it rains, the grass grows." (p→rp→r)
  • •
    Contraposition:
    p→qp→q is logically equivalent to ¬q→¬p¬q→¬p.
    This means: If "If it rains, then the ground is wet" is true, then "If the ground is not wet, then it did not rain" must also be true.
    This equivalence is useful in proof techniques, especially proof by contrapositive.
  • •
    Material Implication (Alternative Form):
    p→qp→q is equivalent to ¬p∨q¬p∨q.
    This means that "If pp then qq" can be rewritten as "Either pp is false or qq is true."
    Example
    "If it's a dog, then it's an animal."
    This is logically the same as saying: "It's not a dog, or it's an animal."
    This equivalence is a key rule in propositional logic and is used in proofs and simplifications.
  • •
    Asymmetry:
    (p→qp→q) is equivalent to (¬p∨q¬p∨q), but not equivalent to (q→pq→p).
    This means that implication is not symmetric. Just because p→qp→q is true does not mean q→pq→p is true.
    Example
    "If you are a mother, then you are a woman" (p→qp→q) is true.
    But "If you are a woman, then you are a mother" (q→pq→p) is not necessarily true.
Pitfall: Taking the inverse for the contrapositive
Writing ¬p→¬q\neg p \to \neg q as the contrapositive of p→qp \to q fails at the row p=Fp = F, q=Tq = T: there p→qp \to q is T but ¬p→¬q\neg p \to \neg q is F. The inverse ¬p→¬q\neg p \to \neg q is equivalent to the converse q→pq \to p, not to p→qp \to q.
Contraposition and asymmetry both concern what happens when the two parts of an implication are rearranged. Swapping pp and qq alone gives the converse q→pq \to p, which can differ from p→qp \to q, as the mother example shows. Forming the contrapositive takes two moves together: both parts are negated, and they change places, giving ¬q→¬p\neg q \to \neg p.

Common Misconceptions

A frequent source of confusion in propositional logic is the truth value of the implication statement p→qp \rightarrow q when pp is false. According to the truth table, the implication is considered true regardless of the truth value of qq. This phenomenon is known as vacuous truth.
The rationale behind this definition is that an implication is only false in the specific case where the hypothesis (pp) is true and the conclusion (qq) is false. If the hypothesis is not satisfied, then the implication is not violated, and thus the overall statement is true.
Example
"If I win the lottery, then I will buy a new car." If I do not win the lottery, the statement remains valid regardless of whether I buy a car.
Another common misunderstanding is to assume that p→qp \rightarrow q is equivalent to q→pq \rightarrow p. This is incorrect: implication is not symmetric, and such an inference does not hold logically.
DownloadPNG2×PDF
1Taking the inverse for the contrapositive
Asked for the contrapositive of p→qp \to q, the learner negates both parts but keeps their order, writing ¬p→¬q\neg p \to \neg q. That formula is the inverse, and it is not equivalent to p→qp \to q.
Wrong turn
Error here
"If it rains, then the ground is wet" is p→qp \to q. Its contrapositive is taken to be "If it does not rain, then the ground is not wet", that is ¬p→¬q\neg p \to \neg q.
Right path
Negate both parts and swap them, giving ¬q→¬p\neg q \to \neg p, "If the ground is not wet, then it did not rain". In the row p=Fp = F, q=Tq = T, the formula p→qp \to q is T and ¬q→¬p\neg q \to \neg p is F→TF \to T, which is T, while ¬p→¬q\neg p \to \neg q is T→FT \to F, which is F.
Why it happensNegating each part looks like the whole change, and the swap is easy to forget. The inverse ¬p→¬q\neg p \to \neg q is the contrapositive of the converse q→pq \to p, so it is equivalent to the converse, which the asymmetry property already separates from p→qp \to q.
How to checkCompare the two formulas in the row where the original antecedent is F and the original consequent is T. p→qp \to q is T there, and a correct contrapositive must be T there too.
2Negating the implication as another implication
When an implication has to be denied, as in a proof by contradiction, its negation is written as another conditional, such as p→¬qp \to \neg q. The negation of an implication is not a conditional at all: it is the single case that breaks it, pp true and qq false.
Wrong turn
Error here
To deny "If it rains, then the ground is wet", the learner states "If it rains, then the ground is not wet", that is p→¬qp \to \neg q.
Right path
By material implication p→q≡¬p∨qp \to q \equiv \neg p \lor q, so ¬(p→q)≡¬(¬p∨q)≡p∧¬q\neg(p \to q) \equiv \neg(\neg p \lor q) \equiv p \land \neg q, "It rains and the ground is not wet". For (p,q)(p, q) equal to (T,T)(T, T), (T,F)(T, F), (F,T)(F, T), (F,F)(F, F), the formula p→qp \to q takes the values T, F, T, T and p∧¬qp \land \neg q takes F, T, F, F, while p→¬qp \to \neg q takes F, T, T, T.
Why it happensThe "not" is attached to the conclusion, as if denying a conditional meant changing what it promises. In everyday speech "it is not true that if it rains the ground is wet" sounds like a claim about what happens when it rains.
How to checkA negation must take the opposite value of the original in every row. At p=Fp = F, p→qp \to q is T, so its negation must be F there; p→¬qp \to \neg q is also T at p=Fp = F, so it is not the negation.
Common misconceptions about implication·/logic/propositional-logic/semantics/implicationLearn Math Class
Both slips change a conditional into a different one. The contrapositive of p→qp \to q negates both parts and swaps them, giving ¬q→¬p\neg q \to \neg p, and the negation of p→qp \to q is p∧¬qp \land \neg q, not another conditional. Testing the rows where pp is F, where p→qp \to q is always T, catches both slips.

Implication in Mathematical Proofs

Logical implication plays a foundational role in mathematical reasoning. In a direct proof, one assumes the antecedent (pp) and demonstrates that the consequent (qq) logically follows, thereby confirming the truth of p→qp \rightarrow q.
Another essential technique is proof by contraposition, which leverages the equivalence of p→qp \rightarrow q and ¬q→¬p\neg q \rightarrow \neg p. In many cases, this approach is more straightforward than a direct proof.
Example
To prove "If n2n^2 is even, then nn is even," one may instead prove the contrapositive: "If nn is odd, then n2n^2 is odd."
Pitfall: Negating the implication as another implication
Taking p→¬qp \to \neg q as the negation of p→qp \to q fails at p=Fp = F: in both rows with p=Fp = F, p→qp \to q and p→¬qp \to \neg q are T together. The negation is p∧¬qp \land \neg q, which is T only at p=Tp = T, q=Fq = F.
Logical implication also underpins proof by contradiction, where the assumption of pp being true and qq being false leads to a contradiction. This contradiction implies that the original implication p→qp \rightarrow q must be true.
Every proof of an implication rules out the same single case: the antecedent true and the consequent false.

Implication in Logic Laws

Implication plays a central role in many formal laws of propositional logic. These laws describe how implication interacts with other logical operations and how it can be transformed or reasoned about in proofs.
Some of these equivalences help simplify expressions, while others are foundational rules used in direct proofs, proof by contraposition, and resolution strategies.

lawformulaexplanation
Contrapositive Law
(p → q) ≡ (¬q → ¬p)
If p implies q, then not q implies not p.
Implication as OR
p → q ≡ ¬p ∨ q
A conditional statement can be rewritten as a disjunction.
Inverse Law for Implication
(p → q) ≢ (¬p → ¬q)
Just because p→q is true, it doesn't mean ¬p→¬q is true.
Equivalence Breakdown
p ↔ q ≡ (p → q) ∧ (q → p)
Biconditional means both directions of implication must be true.
Monotonicity of OR
p → (p ∨ q)
Adding a term to an OR doesn't make it false.
Monotonicity of AND
(p ∧ q) → p
Removing a term from an AND doesn't make it false.
Resolution
(p ∨ q), (¬p ∨ r) ⊢ (q ∨ r)
If we have p∨q and ¬p∨r, we can conclude q∨r.
Peirce's Law
((p → q) → p) → p
Valid in classical logic but not in intuitionistic logic.
Fact: One direction always holds
For any two statements, (p→q)∨(q→p)(p \to q) \lor (q \to p) is a tautology: if qq is true, p→qp \to q is true, and if qq is false, q→pq \to p is true. So of "the Moon is made of cheese" and "Paris is in France", one implies the other.
Rows 1 and 3 of the table compare an implication with its rearrangements: the contrapositive ¬q→¬p\neg q \to \neg p always agrees with p→qp \to q, while the inverse ¬p→¬q\neg p \to \neg q can be false when p→qp \to q is true. The arrow is not a statement about causes, or about any connection between the meanings of pp and qq. Its truth value depends only on the truth values of its two parts. That is what makes it easy to compute, and it also leads to laws that sound strange when read in everyday language.
These rules are particularly useful for transforming, simplifying, or interpreting logical statements involving conditional relationships.
Read more about laws of propositional logic on dedicated page.

Skills You Should Learn

Each skill opens its step-by-step method page.
Logic methods
  • Negate a conditional statementThe negation of P→QP \to Q is P∧¬QP \land \neg Q: keep the condition, deny the conclusion, and join them with and.
  • Write the converse, inverse and contrapositiveSwap the parts for the converse, negate both for the inverse, do both for the contrapositive; only the contrapositive keeps the meaning.
  • Rewrite an implication without the arrowSingle ruleAn arrow has to go before you can use De Morgan, distribute, or reach a normal form: P→QP \to Q, (P∧Q)→R(P \land Q) \to R, ¬P→Q\neg P \to Q.
  • Build a truth tableList all 2n2^n rows, add one column per subformula from the inside out, and fill each column with the rule of its connective.

Logical Implication FAQ

What does 'only if' mean in logic?

+
'Only if' marks the consequent, not the antecedent: 'p only if q' translates to p → q, because q must hold for p to be possible. It is 'p if q' that reverses the arrow and means q → p. The two phrasings sit one word apart and point in opposite directions, which makes 'only if' the most commonly misread phrase in conditional statements.Read more →

What is the difference between → and ⇒ in logic?

+
The single arrow → is the conditional connective: p → q is a formula whose truth value depends on p and q. The double arrow ⇒ is usually a meta-level claim that the implication holds in every case. Usage varies — many texts write ⇒ for the plain connective — so the distinction only carries weight in sources that use both arrows side by side.Read more →

What are the antecedent and consequent in an implication?

+
In p → q, the proposition p is the antecedent (also called the hypothesis or premise) and q is the consequent (the conclusion). The implication claims that the truth of the antecedent guarantees the truth of the consequent — it is false only when p is true and q is false. Explore all four rows in the truth table generator.Read more →

How does proof by contrapositive work?

+
Instead of proving 'if p then q' directly, prove 'if not q then not p' — the contrapositive, which is logically equivalent to the original. To show that n² even implies n even, prove that n odd implies n² odd, which follows in one line from n = 2k + 1. The method pays off whenever the negated statements are simpler to manipulate than the originals.Read more →

What is the difference between the inverse and the contrapositive?

+
The contrapositive of p→qp \to q negates both parts and swaps them, giving ¬q→¬p\neg q \to \neg p, which is equivalent to p→qp \to q. The inverse negates both parts but keeps their order, giving ¬p→¬q\neg p \to \neg q, which is not: at p=Fp = F, q=Tq = T the original is T and the inverse is F. The inverse is the contrapositive of the converse q→pq \to p, so it matches the converse instead.Read more →

What is the Wason selection task?

+
It is a 1966 card test of how people check a conditional. Four cards show E, K, 4 and 7, and the rule says that a card with a vowel on one side has an even number on the other. Only E and 7 can break the rule, since only they can turn out to be a vowel with an odd number. Fewer than 1 person in 10 picks that pair; most choose E alone, or E and 4.Read more →