Soaps are basically fatty acid salts, something like CH3(CH2)nCOO-Na+ where n is generally 10, 12, or 14 (11 or 13 would work also, but because of the way living organisms make fatty acids even numbers are much more common).
Soap does not have a chemical formula. It is a mixture of various fatty acid salts, and different soaps have different compositions.
This is not a simple question to answer since typical soaps are a molecule made from various carboxylic acids known as "fatty acids" and often Sodium (Na) or Potassium (K). Each of these components when added together produce "soaps" with differing molecular weights. There are perhaps 100 different fatty acids so just using Na & K as the positive metalic ion in the soap molecule produces a possibility for 200 different molecular weights. Understanding this, a common fatty acid in soap could be oleic acid with a molecular weight of ~282 grams/mole, add a Na+ atom (~23 g/mole) yields a soap molecule with a molecular weight of ~304 g (since one Hydrogen atom is lost during the bonding of the Na+ atom). I read once that the average Na+ based soap has a molecular weight of 301 grams where as the average K+ (39 g/mole) based soap would be 317 grams... GCG
A multiple of an empirical formula is often called a molecular formula. This molecular formula represents the actual number of each type of atom in a molecule.
The molecular formula of erythromycin, an antibiotic, is C37H67NO13.
The chemical formula of styrene is C6H5CH=CH2
Benzene has the molecular formula C6H6.
The molecular formula for lithium chromate is Li2CrO4.
There is no formula. There are different types of detergent with different compositions. Even then most, if not all detergents are mixtures, and mixtures do not have chemical formulas.
A multiple of an empirical formula is often called a molecular formula. This molecular formula represents the actual number of each type of atom in a molecule.
It is a molecular species with the formula C6H12O6
The empirical formula C2H3 has a molecular mass of 27 (C: 12, H: 1). To determine the molecular formula with a molecular mass of 54, the molecular formula would simply be double the empirical formula, so the molecular formula would be C4H6.
The molecular formula of erythromycin, an antibiotic, is C37H67NO13.
The molecular formula for Starch is C6H10O5.
The molecular formula of methane is CH4
NO2 is the molecular formula for NO2.
The molecular formula for 2-butyne is C4H6.
CCl4 is molecular formula.
The chemical formula of styrene is C6H5CH=CH2
The molecular formula for Oxycontin is C18H21NO4•HCl .