Can you please explain if it would be possible to calculate the K value if more than one product or reactant in a chemical equation is a gas?

I'm not sure where you're headed with this but I'm guessing that K for liquids where M is used for the concentration is no problem for you but if a gas is involved you don't know how to handle it. For example, in the reaction

A(aq) + B(aq) ==> C(aq),
Keq = (C)/(A)(B). We substitute M at equilibrium for A, B, and C and there is no problem calculation K. If the reaction is
Na2CO3(s) --> Na2O(s) + CO2(g)and
Kp = pCO2 or
Kc = (CO2)
Finally, if we have a mixed equation such as
Zn(s) + 2HCl(aq) ==> ZnCl2(aq) + H2(g) then Keq =
(ZnCl2)*pH2/(HCl)
If I've interpreted your question incorrectly explain a little more fully (perhaps an example) and what you don't understand and I'll try again.

Thanks but not exactly, the question is asking what would happen if you had more than one product or reactant that was a gas

What are you studying? The following answer assumes you are studying reasons for a reaction to go to completion.

When one or more products are a gas the reaction is shifted to the right and it goes to completion.
Reactions go to completion for one of three reasons:
1. A gas is formed.
2. A ppt is formed.
3. A slightly ionized product is formed.

Ièm studying grade 12 chemistry and this is the Chemical Systems and Equilibrium

Thanks. The last answer is the one you want. When a gas is evolved in a closed system, the system eventually reaches equilibrium so the forward and the reverse reactions occur but the system as a whole does not change from the equilibrium point. When the system is open, the gas escapes into the surroundings, the system cannot reach equilibrium and Le Chatelier's Principle applies and the entire system shifts to the right trying to reach equilibrium. The end result is that the reaction goes to completion.

To calculate the equilibrium constant, K, for a chemical equation with multiple gaseous products or reactants, you can follow these steps:

1. Write down the balanced chemical equation: Make sure to include the stoichiometric coefficients for each reactant and product.

2. Construct the expression for K: The expression for K is formed by taking the concentration (or partial pressure) of each product, raised to the power of its stoichiometric coefficient, and dividing it by the concentration (or partial pressure) of each reactant, raised to the power of its stoichiometric coefficient.

3. Determine the units for K: The units for K will depend on the specific reaction and the units used for concentrations or partial pressures. For example, if the concentrations are in molarity (M), the units for K will be M raised to the power of the sum of the stoichiometric coefficients of the products, divided by M raised to the power of the sum of the stoichiometric coefficients of the reactants.

4. Use the ideal gas law, if necessary: If some of the reactants or products are gases, you can use the ideal gas law to convert from partial pressure to molar concentration, or vice versa. The ideal gas law states that PV = nRT, where P is the partial pressure, V is the volume, n is the number of moles, R is the ideal gas constant, and T is the temperature.

5. Calculate the partial pressures or concentrations: Use experimental data or known information to determine the partial pressures or concentrations of the reactants and products at equilibrium. If necessary, convert between partial pressures and concentrations using the ideal gas law.

6. Substitute the values into the K expression: Once you have the partial pressures or concentrations of all the reactants and products at equilibrium, substitute these values into the K expression to obtain the value of K.

Remember that the value of K is a constant at a specific temperature. It indicates the relative concentrations (or partial pressures) of reactants and products at equilibrium.