What the quotient measures
The reaction quotient Q has the same form as the equilibrium constant K, but it uses the activities present at any moment, not only those at equilibrium. It describes where a mixture stands. Comparing Q with K then tells you which way the mixture will shift. This page computes Q for a reaction with up to two reactants and two products. It takes the four activities and the four exponents from the balanced equation, and returns a single number. It does not know K for your reaction, so the comparison is left to you. Because Q is a ratio of activities raised to powers, it is dimensionless and has no unit.
The expression
For a reaction aA + bB ⇌ cC + dD, the quotient is Q = C^c × D^d / (A^a × B^b). Each symbol on the right is a dimensionless activity relative to the standard state, and each exponent is the stoichiometric coefficient. The defaults use activities of 2, 1, 4 and 2 with every exponent equal to 1. The numerator is 4 × 2 = 8, the denominator is 2 × 1 = 2, and Q = 4. For a reaction with only one reactant, set the other activity to 1 and its exponent to 1, or set its exponent to 0. A species with an activity of 1 does not change the product. The two exponents on the product side carry the same weight as the two on the reactant side, so a quotient above 1 means the product terms dominate, and one below 1 means the reactant terms do.
The Haber reaction with unequal exponents
In N2 + 3 H2 ⇌ 2 NH3, set A as nitrogen with exponent 1, B as hydrogen with exponent 3, C as ammonia with exponent 2, and D as 1 with exponent 1. Take activities of 0.5 for nitrogen, 0.4 for hydrogen and 0.2 for ammonia. The numerator is 0.2² = 0.04. The denominator is 0.5 × 0.4³ = 0.5 × 0.064 = 0.032. Then Q = 0.04 / 0.032 = 1.25. The exponent of 3 on hydrogen has a large effect, because cubing 0.4 reduces it to 0.064. Rounding the intermediate values early would shift the result, so keep full precision until the last step. This is why an error in a coefficient changes Q much more than an error of the same size in an activity.
A reaction with one reactant
For 2 NO2 ⇌ N2O4, set A as NO2 with exponent 2 and C as N2O4 with exponent 1, and use 1 with exponent 1 for B and D. With an NO2 activity of 0.5 and an N2O4 activity of 0.1, the quotient is 0.1 / 0.5² = 0.1 / 0.25 = 0.4. Writing the exponent as 2 reflects the coefficient, and it also means that doubling the NO2 activity cuts Q to a quarter. Dissociation reactions run the other way, with the exponent on the product side. The page treats the two sides symmetrically and relies on you to put each species on the correct side. A quick test of an input set is to reverse the reaction, swap the sides and recompute: the two quotients should multiply to 1.
Pure solids and liquids
The activity of a pure solid or pure liquid is taken as 1, so those species drop out of Q. For CaCO3(s) ⇌ CaO(s) + CO2(g), only the gas matters. Set the two solids to 1 and enter the gas activity, which is roughly its pressure divided by the standard pressure of 1 bar. With a CO2 activity of 0.5, Q is 0.5. Leaving the solid amounts in the expression, as mass or moles, would give a wrong Q. The same rule applies to the solvent in dilute aqueous solutions, whose activity is close to 1. Entering the mass of a solid or its moles in place of 1 is a typical slip, and it can change Q by orders of magnitude.
Comparing Q with K
If Q is smaller than K at a given temperature, the mixture has more reactants than equilibrium calls for, and the reaction proceeds toward the products. If Q is larger than K, it proceeds toward the reactants. If they are equal, the mixture is at equilibrium. Suppose K were 2.0 for the default reaction at some temperature. Q = 4 is greater than K, so the net change would run toward the reactants. K values are tabulated for specific temperatures and reaction forms, and K changes if you reverse the reaction or scale the coefficients. Use a K that was written for the same equation and temperature as your Q. If you scale the equation by a factor n, the new K is the old K raised to the power n, and Q changes the same way, so the comparison still gives the same direction.
Why activities, not raw concentrations
A value of K defined with activities is dimensionless. Using concentrations in mol/L directly would give a quotient with units unless the exponents sum to zero, and it would not match a thermodynamic K. In practice, for dilute solutions, a concentration divided by 1 mol/L approximates the activity, and a gas partial pressure divided by 1 bar approximates the gas activity. Use that approach consistently within one problem. Mixing a concentration for one species with a pressure for another is allowed only when the K you compare with was defined that way.
Gas-phase reactions and partial pressures
For reactions among gases, the activity of each gas is approximated by its partial pressure divided by the standard pressure, which is 1 bar. A mixture of 0.40 bar of hydrogen and 0.50 bar of nitrogen has activities 0.40 and 0.50. Partial pressure follows Dalton's law: it is the mole fraction of the gas times the total pressure. Pressures given in atmospheres or kilopascals need conversion to bar before dividing, since 1 atm is 1.01325 bar and 100 kPa is 1 bar. Using atmospheres directly with a K defined for bar introduces an error of about one percent per factor, which compounds when the exponents are large.
What a reaction quotient alone does not predict
The page evaluates the expression and nothing else. It does not balance the equation, look up K, predict the equilibrium composition or account for temperature. It assumes activities relative to standard states and a single standard-state convention across all species. It does not include a safety evaluation of the mixture. The definitions follow the equilibrium-constant section of OpenStax Chemistry 2e.