pH is simply a measure of H+/H3O+ concentration in a solution. I will use the two terms interchangeably below.
The acidity or basicity of a compound has to do with its chemical behaviour.
There are three definitions of acidity.
The simplest definition is the Arrhenius definition:
- An acid dissociates in water to form H+.
- A base ionizes in
water to form OH-.
This definition is limited to aqueous solutions, and so is usually ignored in favor of the Brønsted-Lowry definition, where:
- An acid is a hydrogen ion donor.
- A base is a hydrogen ion acceptor.
This definition is more generally, because it can be used to describe acid-base reactions that occur in solvents other than water.
There is a third definition, Lewis:
- A Lewis acid is an electron pair acceptor.
- A Lewis base is an electron pair donor.
The Lewis definition is the broadest definition of acidity. However, most entry-level courses stick with the Brønsted-Lowry definition since it does an excellent job of describing what we typically consider to be acid-base chemistry.
To summarize, we recognize acids and bases from their chemical structure.
Recognizing Acids
Acids generally come in one of three forms:
Binary Acids
These have the form HX, like HCl, or HF.
Oxyacids
The have an oxygen-containing polyatomic anion. Examples include H2SO4 or HNO3.
Organic Acids
You can't tell if an organic (carbon-containing) compound is an acid based on its formula. However, organic acids are often written RCOOH. The COOH represents the carboxylic acid functional group, which is what makes the compound an acid. For example, acetic acid is often written CH3COOH.
Recognizing Bases
Metal Hydroxides
Soluble metal hydroxides are all bases (since when the dissociate in water they generate OH-).
Nitrogen-containing Bases
Nitrogen-containing compounds similar to ammonia (NH3) are also bases.
$$\ce {NH3 + H2O <=> NH4+ + OH-}$$