Ester

# Overview
Esters are a class of chemical compounds and functional groups. Esters consist of an inorganic or organic acid in which at least one -OH (hydroxy) group is replaced by an -O-alkyl (alkoxy) group. The most common type of esters are carboxylic acid esters (R1-C(=O)-O-R2), other esters include phosphoric acid, sulfuric acid, nitric acid, and boric acid esters. Volatile esters often have a smell and are found in perfumes, essential oils, and pheromones and give many fruits their scent. Ethyl acetate and methyl acetate are important solvents, fatty acid esters form fat and lipids, and polyesters are important plastics. Cyclic esters are called lactones. The name "ester" is derived from the German Essig-Ather (literally:vinegar ether), an old name for ethyl acetate. Esters can be synthesized in a condensation reaction between an acid and an alcohol in a reaction known as esterification.
An ester is an often fragrant organic or partially organic compound formed by the reaction between an acid (including amino acids) and an alcohol (alkyl, R) or aromatic alcohol (aryl, R') (including a more basic amino acid) with the elimination of water. For examples,
acetic acid + an alcohol  acetic ester + water,
CH3COOH + ROH  CH3COOR + H2O,
-r
CH3COO- + H+ + R+ + OH-  CH3COOR + H2O;
with one amino acid acting as a base:
formic acid + L-methionine  N-formyl-L-methionine (an amino acid) + H2O,
-r
two amino acids:
Cys + Gly  Cys-Gly + H2O,
forming a dipeptide. A reaction between an inorganic hydroxide (e.g. sodium hydroxide) and an organic acid (e.g. acetic acid) produces a salt of acetic acid (sodium acetate). A compound is an ester when the hydroxide donor is organic and a salt when the hydroxide donor is inorganic. Hence, a carbonate can be thought of as a salt or an ester of carbonic acid.

# Nomenclature
An ester is named according to the two parts that make it up: the part from the alcohol and the part from the acid (in that order), for example ethyl sulfuric acid ester.
Since most esters are derived from carboxylic acids, a specific nomenclature is used for them. For esters derived from the simplest carboxylic acids, the traditional name for the acid constituent is generally retained, e.g. formate, acetate, propionate, butyrate. For esters from more complex carboxylic acids, the systematic name for the acid is used, followed by the suffix -oate. For example, methyl formate is the ester of methanol and methanoic acid (formic acid): the simplest ester. It could also be called methyl methanoate.
Esters of aromatic acids are also encountered, including benzoates such as methyl benzoate, and phthalates, with substitution allowed in the name.
The chemical formulas of esters are typically in the format of R-COO-R', in which the alkyl group (R') is mentioned first, and the carboxylate group (R) is mentioned last. For example the ester: butyl ethanoate - derived from butanol (C4H9OH) and ethanoic acid (CH3COOH) would have the formula: CH3COOC4H9. Sometimes the formula may be 'broken up' to show the structure, in this case: CH3COO3CH3.

## Oligoesters
The acetic ester, N-formyl-L-methionine, and the dipeptide examples above are each monoesters.
The term oligoester refers to any ester polymer containing a small number of component esters. As an example, chemically, fats are generally diesters of glycerol and fatty acids. Most of the mass of a fat/triester is in the 3 fatty acids.
Tetraesters can be found as part of membrane-spanning lipids in bacteria from the order Thermotogales.
Pentaesters have been used as indicators or in isotopic labelling compounds.
Hexaesters such as calixarene have been used in optodes as sensing devices for optical determination of potassium ion concentration in pH-buffer solutions.
Heptaesters have been found in Euphorbia species.
Octaesters can be inclusions of ester moieties within cavitand cavities.
The number of esters can be up to ten as in oligo-(R)-3-hydroxybutyrate.

# Physical properties
Esters participate in hydrogen bonds as hydrogen-bond acceptors, but cannot act as hydrogen-bond donors, unlike their parent alcohols.  This ability to participate in hydrogen bonding makes them more water-soluble than their parent hydrocarbons. However, the limitations on their hydrogen bonding also make them more hydrophobic than either their parent alcohols or parent acids.  Their lack of hydrogen-bond-donating ability means that ester molecules cannot hydrogen-bond to each other, which makes esters generally more volatile than a carboxylic acid of similar molecular weight. This property makes them very useful in organic analytical chemistry: unknown organic acids with low volatility can often be esterified into a volatile ester, which can then be analyzed using gas chromatography, gas liquid chromatography, or mass spectrometry.
Many esters have distinctive odors, which has led to their use as artificial flavorings and fragrances. For example:

# Ester synthesis
"Esterification" (condensation of an alcohol and an acid) is not the only way to synthesize an ester. Esters can be prepared in the laboratory in a number of other ways:
- by transesterifications between other esters
- by Dieckmann condensation or Claisen condensation of esters carrying acidic -protons
- by Favorskii rearrangement of -haloketones in presence of base
- by nucleophilic displacement of alkyl halides with carboxylic acid salts
- by Baeyer-Villiger oxidation of ketones with peroxides
- by Pinner reaction of nitriles with an alcohol

# Ester reactions
Esters react in a number of ways:
- Esters may undergo hydrolysis - the breakdown of an ester by water. This process can be catalyzed both by acids and bases. The base-catalyzed process is called saponification. The hydrolysis yields an alcohol and a carboxylic acid or its carboxylate salt.
- Esters also react if heated with primary or secondary amines, producing amides.
- Phenyl esters react to hydroxyarylketones in the Fries rearrangement.
- Di-esters such as diethyl malonate react as nucleophile with alkyl halides in the malonic ester synthesis after deprotonation.
- Specific esters are functionalized with an -hydroxyl group in the Chan rearrangement
- Esters are converted to isocyanates through intermediate hydroxamic acids in the Lossen rearrangement.
- Esters with -hydrogen atoms can be converted to alkenes in ester pyrolysis