Reaction Quotient Calculator (Qc and Qp)
Enter your reactant and product concentrations (for Qc) or partial pressures (for Qp) with their balanced stoichiometric coefficients to calculate the reaction quotient Q. Then supply the equilibrium constant K to see which direction the reaction must shift and by how much, with a full show-your-work breakdown.
Formula
Worked example
For N2 + 3H2 = 2NH3 with [NH3] = 0.20 mol/L, [N2] = 0.50 mol/L, [H2] = 0.50 mol/L: Qc = (0.20^2) / (0.50^1 x 0.50^3) = 0.04 / 0.0625 = 0.64. If Kc = 0.5, then Q/K = 1.28, so Q > K and the reaction shifts in reverse toward reactants. log Qc = log(0.64) = -0.19.
What the reaction quotient measures
The reaction quotient Q is a snapshot of a reversible reaction taken at any arbitrary moment, not just at equilibrium. It is built from the same mass-action expression as the equilibrium constant K: the concentrations (or partial pressures) of the products, each raised to its stoichiometric coefficient, divided by the same product for the reactants. The only difference between Q and K is timing. K describes the special ratio that exists once the forward and reverse rates have balanced, while Q can be calculated for any mixture at any instant, even one far from equilibrium.
Qc vs Qp: choosing the right form
Qc uses molar concentrations (mol per liter) and applies to reactions in solution or to gas-phase reactions when concentrations are given directly. Qp uses partial pressures (in atm by convention, though any consistent pressure unit works) and is the natural choice for pure gas-phase reactions. The two forms are related by the equation Qp = Qc(RT)^Dn, where R is the gas constant (0.08206 L atm per mol K), T is temperature in kelvin, and Dn is the change in moles of gas (moles of gaseous products minus moles of gaseous reactants). When Dn is zero, Qc and Qp are numerically equal. Always match the type of Q to the type of K you are comparing it against: use Kc with Qc and Kp with Qp.
How to set up the expression correctly
Start from a balanced chemical equation, because the coefficients become the exponents in Q. Pure solids and pure liquids are left out entirely, their activity is defined as one, so only include gases and dissolved species. Concentrations are expressed in molarity for solutions or partial pressures for gases, and you must be consistent across the whole expression. In this calculator you list each product concentration alongside its coefficient, and likewise for the reactants; the tool then raises every value to its matching power, multiplies the products together, multiplies the reactants together, and divides the two to give Q. The log Q output is useful when working with reactions where K is many orders of magnitude from 1, because the logarithmic scale compresses the range and connects directly to the Gibbs free energy expression DeltaG = RT ln(Q/K).
Comparing Q to K and the Gibbs energy connection
The power of Q comes from comparing it with K. If Q is smaller than K, the system has too few products relative to equilibrium, so the net reaction proceeds forward, building more product until the ratio rises to K. If Q is larger than K, there is an excess of product, so the reaction runs in reverse, consuming product and regenerating reactant until Q falls back to K. When Q equals K, the forward and reverse processes are already balanced and there is no net change. This comparison also has a thermodynamic interpretation: DeltaG = RT ln(Q/K). When Q is less than K, the logarithm is negative and DeltaG is negative, meaning the forward reaction is spontaneous. When Q is greater than K, the logarithm is positive and the reverse reaction is spontaneous instead. The Q/K ratio shown in the results card tells you at a glance how far from equilibrium the mixture is.
Reading Q against K
| Q vs K | Q/K ratio | Net direction | DeltaG sign |
|---|---|---|---|
| Q << K | < 0.01 | Strongly forward | Strongly negative |
| Q < K | < 1 | Forward (toward products) | Negative |
| Q = K | = 1 | At equilibrium, no net change | Zero |
| Q > K | > 1 | Reverse (toward reactants) | Positive |
| Q >> K | > 100 | Strongly reverse | Strongly positive |
Comparing the reaction quotient with the equilibrium constant predicts the direction of net change and the sign of DeltaG.
Frequently asked questions
What is the difference between Q and K?
They share the same mass-action formula, but K is the ratio only at equilibrium, whereas Q can be evaluated for any set of concentrations or pressures at any instant. Q tells you how far a mixture is from equilibrium and in which direction it will move. K is a constant for a given reaction at a given temperature; Q changes as the reaction proceeds.
When do I use Qc versus Qp?
Use Qc when your data is in molar concentrations (mol/L), which is typical for reactions in solution and for gas-phase reactions when concentrations are given directly. Use Qp when working with gas-phase reactions and partial pressures are given in atm. They are related by Qp = Qc(RT)^Dn, where Dn is the change in moles of gas. Always pair like with like: compare Qc to Kc and Qp to Kp.
Do I include solids and liquids in Q?
No. Pure solids and pure liquids have an activity of 1 by convention and are omitted from the mass-action expression. Only include gaseous species and dissolved (aqueous) species, using partial pressures for gases or molar concentrations for solutions. Solvents (usually water) are also omitted when they appear in large excess.
What does it mean when Q equals K?
It means the reaction is already at equilibrium. The forward and reverse reaction rates are equal, so there is no net change in the amounts of products or reactants even though both reactions continue at the molecular level. The Gibbs free energy change DeltaG is exactly zero at this point.
How does Q relate to Gibbs free energy?
The relationship is DeltaG = RT ln(Q/K), where R is the gas constant and T is temperature in kelvin. When Q is less than K, the logarithm is negative, DeltaG is negative, and the forward reaction is spontaneous. When Q is greater than K, DeltaG is positive and the reverse reaction is spontaneous. At Q = K, DeltaG = 0 and the system is at equilibrium. The log Q output in this calculator is proportional to the DeltaG contribution from Q.
What is the Q/K ratio shown in the results?
The Q/K ratio tells you in a single number how far the current state is from equilibrium. A ratio of 1 means equilibrium. A ratio below 1 means the reaction must proceed forward; the further below 1, the larger the net forward shift needed. A ratio above 1 means the reaction must proceed in reverse. The gauge visual maps this ratio on a scale for quick interpretation.