Back to Glossary

Boolean Algebra

Boolean algebra is the branch of mathematics that works with just two values, true and false, combined using the operations AND, OR and NOT. It is the logic behind spreadsheet IF statements, database filters, credit approval rules and every automated control that has to answer yes or no.

From the Money Master HQ dictionary, founded by Shihan Sheriff (FCMA, VP of Finance at Nomod, CFO at Esanjo Ventures). How these definitions are written.

What it means

Ordinary arithmetic works with numbers, while Boolean algebra works with statements that can only be true or false, usually written as 1 and 0. Three operations do almost all the work: AND is true only if both inputs are true, OR is true if either input is true, and NOT flips a value to its opposite.

This matters in finance because control and approval rules are Boolean by nature. A payment is released only if the invoice matches a purchase order AND the goods were received AND the approver is not the person who raised the request, which is three conditions joined by logic rather than arithmetic.

The same logic sits behind every spreadsheet test you write. Nested IF, AND, OR and NOT functions in a model are Boolean expressions, and so are the filters in a reporting tool and the WHERE clause in a database query.

Writing conditions this way exposes mistakes that prose hides. Business rules written as sentences often confuse AND with OR, and converting them to explicit logic makes it obvious whether a case needs both tests or only one.

A useful habit is to express Boolean logic as arithmetic when auditing a rule. AND behaves like multiplication because 1 multiplied by 0 is 0, while OR can be written as 1 minus the product of the opposites, which makes a logic test easy to check in a spreadsheet column.

The nuance that causes real errors is operator precedence. A AND B OR C does not mean the same thing as A AND (B OR C), and missing brackets in a control rule can quietly approve transactions nobody intended to allow.

In practice

Real-world examples.

1

Example

A finance analyst building an approval matrix writes the rule as explicit logic before coding it: release payment if (three-way match is true) AND (value is under $25,000 OR a second approver has signed). Writing the brackets first catches an error in the original policy wording, which had implied that any second approval removed the matching requirement.

2

Example

An internal auditor tests a purchase-to-pay system by listing every combination of three conditions, giving eight possible cases. Two combinations turn out to release payment when they should block it, which is traced to a missing NOT in the configuration.

3

Example

A credit team converts a lending policy from a two-page memo into 14 Boolean conditions joined with AND and OR. The exercise reveals that two rules contradict each other, so no applicant could ever have satisfied both, which explains an unusually high decline rate.

Formula

Calculation

Using 1 for true and 0 for false, A AND B = A multiplied by B, A OR B = 1 - ((1 - A) multiplied by (1 - B)), and NOT A = 1 - A. Suppose a lender's rule is: approve if income is at least $60,000 AND credit score is at least 680 AND NOT in arrears. Applicant one earns $72,000, so the income test is 1; has a score of 705, so the score test is 1; and has no arrears, so arrears is 0 and NOT arrears is 1 - 0 = 1. The decision is 1 multiplied by 1 multiplied by 1 = 1, so the application is approved. Applicant two earns $81,000 (test = 1) and has a score of 702 (test = 1) but is in arrears, so arrears is 1 and NOT arrears is 1 - 1 = 0. The decision is 1 multiplied by 1 multiplied by 0 = 0, a decline, and the zero shows immediately which condition caused it.

Case study

Seen in the real world.

Varlow Instruments is a fictional manufacturer used for this illustrative case study. Its expense system was configured to flag a claim for review if the amount was over $500 AND the category was travel OR the receipt was missing.

Because the brackets were never specified, the system read the rule as (over $500 AND travel) OR (receipt missing), which was not what the policy committee intended. Claims under $500 with a receipt attached sailed through even in categories the committee had wanted reviewed, and roughly $140,000 a year of small claims went unexamined.

In this invented case the controller rewrote the rule as over $500 AND (travel OR receipt missing), tested all four combinations before release, and documented the truth table in the policy itself. The illustrative lesson is that one pair of brackets can be the whole control.

Watch out

Common mistakes.

  • Using AND where the policy really means OR, which is the most frequent error when business rules are translated from prose into system logic.
  • Leaving out brackets and relying on the system's default precedence, so the rule that runs is not the rule that was approved.
  • Testing only the cases you expect, when the point of a truth table is to check every combination including the ones that look unlikely.

Questions

People also ask.

What are the three basic operations?

AND, which needs both conditions true, OR, which needs at least one true, and NOT, which reverses a condition.

What is a truth table?

A simple grid listing every possible combination of the inputs with the result for each, which is the standard way to check that a rule behaves as intended.

Where does this show up in finance work?

In spreadsheet IF formulas, database queries, approval and segregation of duties rules, credit scorecards, reconciliation matching and any automated alert.

Was this explanation helpful?

From the founder's library

Accounting Fundamentals: A Non-Finance Manager's Guide to Finance and Accounting, by Shihan Sheriff

Take it further with the book.

Build your financial confidence beyond this definition. Shihan's full-length guide, Accounting Fundamentals, takes the same plain-English approach and turns it into a complete, practical playbook for non-finance managers, business owners and students - with chapter-end quiz answers and presentation slides included.

US$2.24US$2.99

25% off with code MMHQ25, applied at checkout. Priced in USD - checkout may show the equivalent in your local currency.

View the book and save 25%

Related

Keep reading.

Internal ControlSegregation of DutiesCredit ScoringThree-Way MatchFinancial ModellingData ValidationConditional Logic
Last updated · October 8, 2026
Browse all terms →

Disclaimer

The information provided in this finance dictionary is for educational and informational purposes only. It should not be construed as financial, investment, legal, or tax advice. Always consult with a qualified professional before making any financial decisions. Money Master HQ makes no representations or warranties about the accuracy, completeness, or suitability of this information. Use of this content is at your own risk.