Acids, bases, pH, and pKa

Lesson 1.3 of Biology Primer for Computer Scientists. Download the code as a notebook.

Take an aspartate side chain exposed to water. Its tip contains two oxygens and is usually written –COO⁻. Now make the solution more acidic. The group can pick up a proton and become –COOH, removing its net negative charge without changing the positions of any of its heavy atoms very much.

A structure file that omits hydrogens can therefore show nearly the same local coordinates for two chemically different states. To choose between them, we need to know how readily that group gives up a proton and how available protons are in the surrounding solution. These are the roles of pKa and pH.

Follow the proton and keep the electrons

An acid can donate a proton, H⁺. A base can accept one. A carboxyl group participates in the reversible reaction

R−COOH⇌R−COO−+H+.

When the proton leaves, the electrons of its bond remain with the carboxyl group. Losing positive charge makes the group negative. Reattach the proton and the group becomes neutral again.

An amino group behaves similarly when written as the dissociation of its protonated form:

R−NH3+⇌R−NH2+H+.

Here the protonated group starts positive, and losing the proton makes it neutral. In both equations, removing one proton lowers the group's charge by one. “Protonated” does not itself mean positive; we must also know which chemical group we are discussing.

In water, a proton is associated with water molecules and is transferred through their interactions. H⁺ is convenient chemical bookkeeping, not a picture of bare nuclei wandering through the liquid. A group exchanges protons with this surrounding solution.

At equilibrium, protonation and deprotonation continue. What stays constant is the average population in each state. We can ask about a million copies of the group at one instant or the fraction of time one group occupies a state; at equilibrium these describe the same population balance.

What moving the pH slider changes

Concentration in molar units, M, means moles per liter. A mole contains about 6.02×1023 particles. In a dilute solution, pH is approximately

pH≈−log10⁡[H+],

where the concentration is expressed relative to 1 M. Strictly, pH uses proton activity, an effective concentration accounting for interactions in the solution. The concentration approximation is enough for the calculations here.

At pH 7, the proton concentration is approximately 10−7 M. At pH 6, it is 10−6 M: ten times larger. Lowering pH by two units increases proton availability a hundredfold. That minus sign is easy to lose, so check the direction against the physical operation: adding acid tends to lower pH and favor protonated groups.

Pure water is neutral near pH 7 at 25 °C, where its H⁺ and OH⁻ activities are equal. The neutral pH changes with temperature. Many cellular environments are near pH 7, but particular compartments and experimental solutions can differ substantially. “Charged at physiological pH” is an approximate statement about an environment, not a permanent property stamped on a residue.

Derive the population from equilibrium

Write a generic acid as HA and its deprotonated form as A⁻. Its acid dissociation constant is, in the same dilute-solution approximation,

Ka=[A−][H+][HA].

Rearrange before taking any logarithms:

[A−][HA]=Ka[H+].

More available protons reduce the deprotonated-to-protonated ratio. Define pKa=−log10⁡Ka and substitute the pH definition. The ratio becomes

[deprotonated][protonated]=10pH−pKa.

This is the Henderson–Hasselbalch relation. Its usual logarithmic form is

pH=pKa+log10⁡[A−][HA].

At pH = pKa the ratio is one: equal populations. One pH unit above pKa gives a ratio of ten to one; one unit below gives one to ten.

To turn odds into a fraction, divide the protonated population by the total population:

fprot=[HA][HA]+[A−].

Divide numerator and denominator by [HA] and substitute the ratio above:

fprot=11+10pH−pKa.

If you know the logistic function σ(z)=1/(1+e−z), this is σ(ln⁡(10)(pKa−pH)). The midpoint is pKa, and each pH unit changes the odds tenfold. We arrived at the sigmoid by counting equilibrium populations.

pH relative to pKaProtonated fraction
two units below100/101 ≈ 99%
one unit below10/11 ≈ 91%
equal1/2
one unit above1/11 ≈ 9%
two units above1/101 ≈ 1%

These fractions apply to an isolated two-state ionization with a fixed pKa. Interacting groups in a protein can couple their protonation, producing more complicated behavior.

Convert a fraction into a charge

For a carboxyl group, the protonated state has charge zero and the deprotonated state −1. Its average charge is therefore −(1−fprot). For an amino group, the corresponding charges are +1 and zero, giving average charge fprot.

An average charge of −0.9 does not mean that an individual carboxyl group carries nine tenths of its usual formal charge. In this two-state description, about 90% of the groups have charge −1 and about 10% have charge zero. These population averages are different from the partial atomic charges of lesson 1.2, which represent electron distribution within a specified chemical state.

Typical reference pKa values give a first estimate for a protein:

GroupReference pKaProtonated → deprotonated charge
C-terminusabout 30 → −1
Aspartate, Asp or D3.90 → −1
Glutamate, Glu or E4.10 → −1
Histidine, His or H6.0+1 → 0
N-terminusabout 8+1 → 0
Cysteine, Cys or C8.30 → −1
Tyrosine, Tyr or Y10.10 → −1
Lysine, Lys or K10.5+1 → 0
Arginine, Arg or R12.5+1 → 0

Near pH 7, Asp and Glu are usually negative; Lys and Arg are usually positive. Histidine is closer to its midpoint and deserves closer attention. With pKa 6, it is about 4% protonated at pH 7.4 but about 91% protonated at pH 5. That change can remove or create a charge in an enzyme's active site, the region where its chemical reaction occurs.

Most other side chains remain neutral over this range. Carbon-rich side chains such as leucine's are predominantly hydrophobic. Serine and asparagine have neutral polar groups that interact with water. Tyrosine combines a nonpolar ring with a polar OH, and cysteine changes class when it ionizes. These categories help us predict behavior, provided we keep the actual group and conditions in view.

Loading the interactive figure…

Start at pH 7.4 and lower it toward 5. Watch histidine, then the acidic side chains. Every group becomes more positive, or less negative, as protonation increases. The lower plot adds these average charges for ubiquitin and marks the pH at which the sum crosses zero.

Add up a protein

Assume each ionizable group behaves independently with the reference pKa. The protein's net charge is then a sum over side chains plus the two chain ends.

from primer import structure, sequence

PKA = {"D": (3.9, -1), "E": (4.1, -1), "H": (6.0, +1), "C": (8.3, -1),
       "Y": (10.1, -1), "K": (10.5, +1), "R": (12.5, +1)}
N_TERM, C_TERM = (8.0, +1), (3.1, -1)

def charge(pKa, sign, pH):
    """Average charge of one group: a base is +1 when protonated, an acid -1 when not."""
    protonated = 1 / (1 + 10 ** (pH - pKa))
    return protonated if sign > 0 else -(1 - protonated)

def net_charge(seq, pH):
    groups = [N_TERM, C_TERM] + [PKA[aa] for aa in seq if aa in PKA]
    return sum(charge(pKa, sign, pH) for pKa, sign in groups)

ubq = sequence(structure("1UBQ")[0]["A"])
print(ubq, len(ubq))
for pH in (4.0, 7.4, 10.0):
    print(f"pH {pH:>4}: net charge {net_charge(ubq, pH):+.2f}")
MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGG 76
pH  4.0: net charge +6.66
pH  7.4: net charge -0.17
pH 10.0: net charge -3.13

Ubiquitin has eleven Asp/Glu side chains and eleven Lys/Arg side chains. Their near cancellation makes the smaller contributions from histidine and the ends noticeable. “Nearly neutral” describes the sum; it says little about the strongly charged patches on the surface.

The isoelectric point, pI, is the pH at which average net charge is zero. In this model each contribution falls as pH rises, so the total is monotonic. That makes finding its zero a binary-search problem:

lo, hi = 0.0, 14.0
for _ in range(50):
    mid = (lo + hi) / 2
    lo, hi = (mid, hi) if net_charge(ubq, mid) > 0 else (lo, mid)
print(f"pI ≈ {mid:.2f}")
pI ≈ 7.02

This is a prediction under the independent-group approximation. A measured pI need not equal it, because real groups have different surroundings, can interact with one another, and may be chemically modified. The value is useful precisely because its assumptions are explicit enough to examine.

Inspect the charged side chains on ubiquitin. The colors use conventional residue classes near neutral pH. They are not measured atomic charges. Find histidine 68 in violet and imagine how adding a proton would change the local surface without substantially redrawing its heavy-atom skeleton.

Open 1UBQ in Mol*

A pKa belongs to a group in an environment

Water stabilizes charged groups by orienting its polar molecules around them. Bury an isolated carboxylate away from water and its charged state generally becomes less favorable. The equilibrium moves toward neutral COOH, which means its pKa rises. Bury a lysine amino group under similar conditions and the neutral NH₂ state becomes more favorable, so its pKa falls.

The same preference for neutrality thus shifts the two pKas in opposite directions. Derive the sign by writing the two chemical states; trying to memorize “burial raises pKa” would get lysine wrong. Whether burial actually makes a lysine neutral at a chosen pH depends on the size of the shift.

Neighbors can counteract this effect. A positive group stabilizes a nearby carboxylate's negative state and tends to lower its pKa. A negative neighbor tends to oppose that state. If several nearby groups can protonate, the best assignment for one can depend on the assignments of the others.

An enzyme can use a group near its working pKa to accept a proton during one reaction step and return one later. Histidine often fills this role. If activity changes around pH 6, histidine is a candidate explanation, but the activity curve alone does not identify a residue or prove a mechanism.

When preparing a structure for simulation or docking, we must therefore choose protonation states at the intended pH. Programs can estimate shifted pKas from the local environment. Where two states are plausible and the result depends on the choice, calculating both is more informative than treating one unobserved hydrogen assignment as certain.

Check yourself

A carboxyl group has pKa 4. At pH 5, what fraction is protonated and what is its average charge? Repeat for an amino group whose protonated form has the same pKa.

Reasoning

Both have protonated fraction 1/(1+10)=1/11. The carboxyl average is −10/11≈−0.91. The amino average is +1/11≈+0.09. The same population ratio gives different charges because the chemical states have different charge baselines.

At pH 7.4, a buried lysine's pKa falls from 10.5 to 8.0. Does it become predominantly neutral? What would happen if its pKa fell to 6.0 instead?

Reasoning

At pKa 8.0, the protonated fraction is 1/(1+10−0.6)≈0.80, so it is still mostly positive. At pKa 6.0, it is about 0.038, so it is mostly neutral. Burial favors the neutral state relative to water, but the actual pKa and pH determine the majority state.

Why might a protein aggregate more readily near its pI? Does pI mean that its ionizable groups have all become neutral?

Reasoning

Near pI, the small average net charge can reduce long-range repulsion between protein molecules, allowing other attractions to promote association. Positive and negative groups can still be abundant and cancel in the sum. Solubility also depends on salt, surface chemistry, and conformation, so pI is one influence rather than a complete prediction.

An enzyme loses activity below pH 6. Replacing an active-site histidine with glutamine also removes activity. Propose a mechanism consistent with both observations and a reason it is not yet proved.

Reasoning

The neutral histidine may need to accept a proton. Lower pH could protonate it before the reaction, and glutamine cannot perform the same proton exchange. But the mutation might also disrupt geometry or binding, and low pH could affect another group. Structural and kinetic measurements would help separate these explanations.