I want to use the Henderson–Hasselbalch equation to solve for the concentration of acetic acid when I know the ph. Most everything I see solves for the ph. I can find that out with a ph meter :-).

Since it is all theoretical I don't care which base is chosen, as long as I know which it is. I need to see how the formula is set up so I understand where the numbers come from.

The Henderson-Hasselbalch equation is a useful equation in chemistry that allows you to calculate the pH or the concentration of a weak acid or base in a solution when you know the other two variables. In your case, you want to use the equation to solve for the concentration of acetic acid when you know the pH.

The Henderson-Hasselbalch equation is:

pH = pKa + log ( [A-] / [HA] )

In this equation:
- pH is the negative logarithm of the hydrogen ion concentration in the solution, which represents the acidity.
- pKa is the negative logarithm of the acid dissociation constant, which indicates the strength of the acid.
- [A-] is the concentration of the conjugate base.
- [HA] is the concentration of the weak acid.

To solve for the concentration of acetic acid ([HA]), you need to rearrange the equation:

[HA] = 10^(pKa - pH) * [A-]

To calculate the concentration of acetic acid, you need to know the pKa value of acetic acid and the concentration of the conjugate base ([A-]). The pKa value is a known constant for acetic acid and is approximately 4.75 at 25°C.

To find the concentration of acetic acid, you need to know the concentration of the conjugate base ([A-]) at a given pH value. This concentration can be determined using known stoichiometry, reaction equations, or experimental data, depending on the specific situation.

By substituting the pKa value, pH value, and the concentration of the conjugate base into the rearranged Henderson-Hasselbalch equation, you can calculate the concentration of acetic acid ([HA]).

Note: It is important to ensure that all concentrations are expressed in the same units (e.g., molarity) for accurate calculations.