Home › Chemistry › Equilibrium Constant Calculator
Equilibrium Constant Calculator
Computes the concentration equilibrium constant Kc of a reaction aA + bB ⇌ cC + dD from equilibrium concentrations raised to their stoichiometric coefficients, converts it to Kp with Kp = Kc·(RT)^Δn for gas-phase reactions, and reports log K, the standard Gibbs energy ΔG° = −RT·ln K and which side the equilibrium favours.
When to use
You have equilibrium concentrations of the species of a balanced reaction with up to two reactants and two products and need Kc, Kp, ΔG° or a statement of whether products or reactants are favoured.
Do not use when: You need to predict equilibrium concentrations from a known K and initial amounts (an ICE-table problem), the pH of a weak acid (use weak-acid-ph), or K from a cell potential (use nernst-equation).
Formula
Kc = concentration_c^c × concentration_d^d / (concentration_a^a × concentration_b^b); Δn = c + d − a − b; Kp = Kc × (R × T)^Δn with R = 0.082057 L·atm/(mol·K); ΔG° = −R × T × ln K with R = 8.314 J/(mol·K); log_kc = log10 Kc
Concentrations are used in place of activities, so K is dimensionless relative to the 1 mol/L (Kc) or 1 atm (Kp) standard state; species with coefficient 0 are omitted, as pure solids, liquids and the solvent should be. K is temperature-dependent: the entered temperature only converts Kc to Kp and to ΔG°, it does not extrapolate K to another temperature (that needs ΔH° via the van 't Hoff equation).
Inputs
| Parameter | Type | Unit | Required | Description |
|---|---|---|---|---|
coefficient_a | integer | default 1 | Stoichiometric coefficient of reactant A. Range: ≥ 1, ≤ 20 | |
concentration_a | number | mol/L | yes | Equilibrium concentration of reactant A (omit pure solids, liquids and the solvent from the expression by not entering them). Range: > 0, ≤ 1000000 |
coefficient_b | integer | default 0 | Stoichiometric coefficient of reactant B; 0 when there is no second reactant. Range: ≥ 0, ≤ 20 | |
concentration_b | number | mol/L | default 0 | Equilibrium concentration of reactant B (required when coefficient_b > 0). Range: ≥ 0, ≤ 1000000 |
coefficient_c | integer | default 1 | Stoichiometric coefficient of product C. Range: ≥ 1, ≤ 20 | |
concentration_c | number | mol/L | yes | Equilibrium concentration of product C. Range: > 0, ≤ 1000000 |
coefficient_d | integer | default 0 | Stoichiometric coefficient of product D; 0 when there is no second product. Range: ≥ 0, ≤ 20 | |
concentration_d | number | mol/L | default 0 | Equilibrium concentration of product D (required when coefficient_d > 0). Range: ≥ 0, ≤ 1000000 |
temperature_k | number | K | default 298.15 | Absolute temperature used for Kp = Kc(RT)^Δn and ΔG° = −RT ln K (298.15 K = 25 °C). Range: > 0, ≤ 100000 |
Outputs
| Output | Type | Unit | Description |
|---|---|---|---|
kc | number | [C]^c [D]^d / ([A]^a [B]^b) with concentrations in mol/L (dimensionless by convention). | |
kc_scientific | string | Kc in scientific notation. | |
kp | number | Kc × (R·T)^Δn with R = 0.082057 L·atm/(mol·K): the pressure-based constant with partial pressures in atm (equal to Kc when Δn = 0). | |
kp_scientific | string | Kp in scientific notation. | |
delta_n_gas | integer | c + d − a − b: change in moles of gas per reaction as written. | |
rt_l_atm_per_mol | number | L·atm/mol | 0.082057 × temperature_k, the factor raised to Δn. |
log_kc | number | Base-10 logarithm of Kc. | |
delta_g_kj_mol | number | kJ/mol | −R·T·ln Kc with R = 8.314 J/(mol·K), standard state 1 mol/L; negative when products are favoured. |
delta_g_kp_kj_mol | number | kJ/mol | −R·T·ln Kp (standard state 1 atm), the value to use for gas-phase reactions; identical to delta_g_kj_mol when Δn = 0. |
reaction_direction | string | Whether products or reactants are favoured (K > 1, K < 1 or K ≈ 1). | |
reaction_text | string | The reaction as interpreted, e.g. 1 A + 3 B ⇌ 2 C. |
Example
H2 + I2 ⇌ 2 HI with [H2] 0.1, [I2] 0.1, [HI] 0.7 mol/L at 298.15 K: {"coefficient_a":1,"concentration_a":0.1,"coefficient_b":1,"concentration_b":0.1,"coefficient_c":2,"concentration_c":0.7} → {"kc":49,"kp":49,"delta_n_gas":0,"log_kc":1.6902,"delta_g_kj_mol":-9.648,"reaction_direction":"K > 1: products favoured at equilibrium","reaction_text":"1 A + 1 B ⇌ 2 C"}
N2 + 3 H2 ⇌ 2 NH3 at 500 K with Kc = 0.5 ([N2] 1, [H2] 1, [NH3] 0.70711): {"coefficient_a":1,"concentration_a":1,"coefficient_b":3,"concentration_b":1,"coefficient_c":2,"concentration_c":0.70711,"temperature_k":500} → {"kc":0.5,"delta_n_gas":-2,"kp":0.00029703,"kp_scientific":"2.970e-4","rt_l_atm_per_mol":41.0287,"delta_g_kj_mol":2.881,"delta_g_kp_kj_mol":33.764,"reaction_direction":"K < 1: reactants favoured at equilibrium","reaction_text":"1 A + 3 B ⇌ 2 C"}
GET https://tttkmbb.com/api/v1/calculate/equilibrium-constant?coefficient_a=1&concentration_a=0.1&coefficient_b=1&concentration_b=0.1&coefficient_c=2&concentration_c=0.7
Machine access
- API:
GET https://tttkmbb.com/api/v1/calculate/equilibrium-constant(query parameters) orPOSTwith a JSON body{"inputs": {...}} - Schema: https://tttkmbb.com/api/v1/calculators/equilibrium-constant · Markdown: https://tttkmbb.com/chemistry/equilibrium-constant.md · JSON definition: https://tttkmbb.com/chemistry/equilibrium-constant.json
- MCP: server
https://tttkmbb.com/mcp, toolrun_calculator with calculator_id="equilibrium-constant" - OpenAPI operationId:
calculate_equilibrium_constant - Freshness:
static. Authentication: none. Rate limit: fair use (see rate limits).
Sources
- Wikipedia – Equilibrium constant (reference)
- OpenStax Chemistry 2e – 13.2 Equilibrium Constants (textbook)
- IUPAC Gold Book – equilibrium constant (standard)
FAQ
How do I enter a reaction with a solid or the solvent?
Leave it out: pure solids, pure liquids and water as solvent have activity 1 and do not appear in K. Set the unused coefficient to 0 (B or D) or renumber the species so A and C are the ones that appear.
Kp in atm or bar?
Kp here uses partial pressures in atm (R = 0.082057 L·atm/(mol·K)). For the IUPAC 1 bar standard state multiply by 1.01325^Δn, or equivalently use R = 0.083145 L·bar/(mol·K).
How does K change with temperature?
This calculator does not extrapolate K. Use the van 't Hoff equation ln(K2/K1) = −(ΔH°/R)(1/T2 − 1/T1): K rises with temperature for endothermic reactions and falls for exothermic ones.
Related calculators
- Nernst Equation Calculator — Equilibrium constant and ΔG° from a standard cell potential.
- Ideal Gas Law Calculator — Convert between gas concentrations and partial pressures.
- Weak Acid pH Calculator — Ka is the equilibrium constant of acid dissociation.