Search the complete library

What do you want to learn or calculate?

Quick linksAll calculatorsMath subjectsPractice questionsFormula library

Discrete math formulas, grouped by topic.

11 discrete math formulas across 6 topics, free and without an account. Discrete-mathematics formulas count and characterize finite structures. Logic and set identities rewrite statements, summation formulas close off repeated addition, and graph relations tie vertices, edges, and degrees together. Because the objects are finite, most results can be checked directly on a small case — which is exactly how to confirm you applied the formula correctly.

Jump to the formulas → All 11 subjects

Every discrete math formula on one page

Each entry links to its own page, where the symbols are defined, the conditions are stated, and the formula is substituted through a worked example. Levels covered here: High school, University.

Logic

1 formula in logic.

De Morgan’s laws

$$\neg(P\land Q)\equiv\neg P\lor\neg Q,\qquad\neg(P\lor Q)\equiv\neg P\land\neg Q$$

Move a negation through AND or OR while switching the connective.

University

Sets

1 formula in sets.

Sums

2 formulas in sums.

Sum of first integers

$$\sum_{k=1}^{n}k=\frac{n(n+1)}2$$

Add consecutive positive integers efficiently.

High school · University

Sum of squares

$$\sum_{k=1}^{n}k^2=\frac{n(n+1)(2n+1)}6$$

Add squares of the first $n$ positive integers.

High school · University

Graphs

4 formulas in graphs.

Handshaking lemma

$$\sum_{v\in V}\deg(v)=2|E|$$

Relate all vertex degrees to the number of edges in an undirected graph.

University

Edges in a complete graph

$$|E(K_n)|=\binom n2=\frac{n(n-1)}2$$

Count edges joining every pair of distinct vertices.

High school · University

Edges in a tree

$$|E|=|V|-1$$

Relate edge and vertex counts in a finite tree.

University

Number theory

2 formulas in number theory.

Euclidean algorithm

$$\gcd(a,b)=\gcd(b,a\bmod b)$$

Reduce a greatest-common-divisor problem to smaller remainders.

High school · University

Modular congruence

$$a\equiv b\pmod n\iff n\mid(a-b)$$

State that two integers have the same remainder modulo $n$.

University

Counting

1 formula in counting.

Pigeonhole principle

$$N\text{ objects in }k\text{ boxes}\implies\text{some box has at least }\left\lceil\frac Nk\right\rceil\text{ objects}$$

Guarantee a repeated placement without identifying which box receives it.

High school · University

Keep going with discrete math

A formula sheet is a reference, not a method. Use the subject guide to see where these relationships come from, a calculator to check a substitution you are unsure about, and practice questions to find out whether you can actually retrieve them.

Formulas in the other subjects

Mathematics does not stop at a subject boundary, and neither do its formulas. Each subject page below lists its own relationships, conditions, and worked examples.

13 formulas

Arithmetic

Review the core arithmetic relationships, their restrictions, and worked substitutions.

Arithmetic formulas →
28 formulas

Algebra

Review the core algebra relationships, their restrictions, and worked substitutions.

Algebra formulas →
30 formulas

Geometry

Review the core geometry relationships, their restrictions, and worked substitutions.

Geometry formulas →
18 formulas

Trigonometry

Review the core trigonometry relationships, their restrictions, and worked substitutions.

Trigonometry formulas →
10 formulas

Precalculus

Review the core precalculus relationships, their restrictions, and worked substitutions.

Precalculus formulas →
42 formulas

Calculus

Review the core calculus relationships, their restrictions, and worked substitutions.

Calculus formulas →
21 formulas

Statistics

Review the core statistics relationships, their restrictions, and worked substitutions.

Statistics formulas →
17 formulas

Probability

Review the core probability relationships, their restrictions, and worked substitutions.

Probability formulas →
17 formulas

Linear Algebra

Review the core linear algebra relationships, their restrictions, and worked substitutions.

Linear Algebra formulas →