How Cannabis Makes THC and CBD: The Biosynthesis Pathway
Five enzymes, two compartments and one gene region decide whether a flower is THC, CBD or something rarer. What the research on each step shows, from the first enzyme to the oven.
GrowBotiq Research Team· · Updated November 16, 2026 8 min read

In this article6
A living cannabis flower contains almost no THC. What it makes is THCA, the acid form, which only becomes THC when it is heated. The same is true of CBD and of nearly every other cannabinoid (Wang et al., 2016).
The factory that makes these acids is small and well mapped: the stalked glandular trichomes, five enzymes and two compartments. This article follows each step with the papers that found it, then looks at the genes that decide whether a plant makes THC or CBD, and at the heat that finishes the job.
Where it happens
Each stalked trichome ends in a head with a disc of 12 to 16 secretory cells at its base (Livingston et al., 2020). Those cells build the precursors and push them, together with the last enzyme of the chain, into a cavity under the head’s outer skin. The final step, the one that makes THCA or CBDA, happens there, in the resin, outside the living cells. The THCA synthase protein is secreted into that cavity, and the cavity contents alone can make THCA (Sirikantaramas et al., 2005).
The reason is self-protection. THCA and CBCA kill cannabis cells by damaging their mitochondria (Morimoto et al., 2007). Keeping the reaction and its products outside the cells lets the plant store large amounts of a compound that would poison its own tissue. Our guide to trichome types describes the gland itself.
The pathway, step by step
1. Hexanoyl-CoA. The chain starts from hexanoic acid, a six-carbon fatty acid, activated by the enzyme CsAAE1. Its gene is highly expressed in the glandular trichomes, and the enzyme works in the cytoplasm (Stout et al., 2012). The five-carbon tail of THC comes from this molecule.
2. Olivetolic acid. A polyketide synthase, called tetraketide synthase (TKS) or olivetol synthase (OLS), adds three units of malonyl-CoA. On its own it makes the wrong product: olivetol, without the acid group (Taura et al., 2009). A second, small protein of 101 amino acids, olivetolic acid cyclase (OAC), closes the ring while keeping the carboxyl group, and only the two together make olivetolic acid (Gagne et al., 2012). That carboxyl is the one heat removes years later in a pipe or an oven.
3. CBGA. An aromatic prenyltransferase attaches geranyl pyrophosphate, a ten-carbon unit from the terpene pathway, to olivetolic acid. The activity was first found in hemp leaves (Fellermeier & Zenk, 1998), and the enzyme accepts olivetolic acid but not olivetol. Which gene does it is not fully settled: a gene called CsPT1 was patented for the step, but a team that rebuilt the pathway in yeast found no activity for it and used a related gene, CsPT4, instead (Luo et al., 2019). CBGA is the branch point of the whole family.
4. THCA, CBDA or CBCA. Three closely related enzymes fold CBGA into different shapes using oxygen and a flavin cofactor. THCA synthase was cloned in 2004 (Sirikantaramas et al., 2004) and CBDA synthase in 2007 (Taura et al., 2007); the two proteins are about 84% identical, and the gene for CBCA synthase was identified in 2019 (Laverty et al., 2019). Which of them a plant carries, and in working form, decides its chemotype.
5. Heat. After harvest, heat removes the carboxyl group as carbon dioxide and turns each acid into its neutral form, the one that acts on the body.
THC or CBD: the genes
When pure-CBD and pure-THC plants were crossed, all the offspring were mixed, and the next generation split into pure CBD, mixed and pure THC in a 1:2:1 ratio, the signature of a single gene region with two codominant versions (de Meijer et al., 2003).
Genome sequencing has since shown what lies in that region. Drug-type cannabis carries a working THCA synthase and a broken CBDA synthase (Weiblen et al., 2015). The hemp cultivar Finola has a working CBDA synthase and no THCA synthase at all; the two genes sit at separate spots inside a long stretch of chromosome that hardly ever recombines, so they are inherited almost as one unit (Laverty et al., 2019).
A 2021 study of a high-CBD cultivar, testing about 15% CBD and 0.8% THC with 11% of its genome from hemp, found that this region explains 92% of the variation in the THC:CBD ratio. Total cannabinoid content was a different story: six other regions on five chromosomes together explained 53% of it, and the synthase region had no significant effect (Grassa et al., 2021).
For a grower that means two separate questions. Whether a plant makes THC or CBD is fixed by its genes and cannot be changed by light or feeding. How much it makes is spread across many genes and responds to the growing conditions, including light and the harvest date.

CBG, CBC and THCV: the rarer branches
- CBG. Plants that accumulate CBGA carry a nearly non-functional version of the synthase gene, so the precursor is not converted further (de Meijer & Hammond, 2005).
- CBC. CBCA dominates in young plants and falls as they mature. Some lines keep it to harvest; they have fewer stalked trichomes, and lower light raised the CBC share (de Meijer et al., 2009).
- THCV and the varins. The same enzymes work on a three-carbon version of olivetolic acid, divarinic acid, whose starting unit is presumed to be butanoyl-CoA (Luo et al., 2019). In normal plants the varin share is close to zero; breeding with several additive genes raised it to up to 96% of the cannabinoids (de Meijer & Hammond, 2016).
Decarboxylation: the last step
The best kinetic data come from an extract of dried flower heated in a vacuum oven. THCA decarboxylated about two to three and a half times faster than CBDA and CBGA. At 110 °C, THCA was essentially gone after 30 minutes; below 100 °C, an hour was not enough to finish (Wang et al., 2016).
Under vacuum and in the dark, THCA turned into THC without forming CBN. The other conversions lost material: the total fell by 8% for THCA, 18% for CBDA and 53% for CBGA at 110 °C, probably through evaporation or side products (Wang et al., 2016). Air, light and loose plant material change these numbers, which is why the half-lives above are a guide rather than a recipe. Slow decarboxylation and oxidation also happen in storage, as explained in our guide to storing cannabis and our review of amber trichomes and CBN. The numbers for flower, vaporizers, tea and oil are in our guide to decarboxylation.
What it means in the grow room
- Chemotype comes from the genetics: buy THC or CBD lines from tested stock.
- Potency comes from many genes and the environment: light, nutrition and harvest timing still matter.
- The resin is made in the stalked heads of the bracts: protect them from handling and heat.
- A lab report lists THCA and THC separately; total THC is THC + 0.877 × THCA.
- Store cured flower cool and dark to slow unwanted decarboxylation and oxidation.
References
- de Meijer EPM, Bagatta M, Carboni A, Crucitti P, Moliterni VMC, Ranalli P, Mandolino G (2003). The inheritance of chemical phenotype in Cannabis sativa L. Genetics 163(1):335–346. doi:10.1093/genetics/163.1.335
- de Meijer EPM, Hammond KM (2005). The inheritance of chemical phenotype in Cannabis sativa L. (II): cannabigerol predominant plants. Euphytica 145:189–198. doi:10.1007/s10681-005-1164-8
- de Meijer EPM, Hammond KM, Micheler M (2009). The inheritance of chemical phenotype in Cannabis sativa L. (III): variation in cannabichromene proportion. Euphytica 165:293–311. doi:10.1007/s10681-008-9787-1
- de Meijer EPM, Hammond KM (2016). The inheritance of chemical phenotype in Cannabis sativa L. (V): regulation of the propyl-/pentyl cannabinoid ratio, completion of a genetic model. Euphytica 210:291–307. doi:10.1007/s10681-016-1721-3
- Fellermeier M, Zenk MH (1998). Prenylation of olivetolate by a hemp transferase yields cannabigerolic acid, the precursor of tetrahydrocannabinol. FEBS Letters 427(2):283–285. doi:10.1016/S0014-5793(98)00450-5
- Gagne SJ, Stout JM, Liu E, Boubakir Z, Clark SM, Page JE (2012). Identification of olivetolic acid cyclase from Cannabis sativa reveals a unique catalytic route to plant polyketides. Proceedings of the National Academy of Sciences 109(31):12811–12816. doi:10.1073/pnas.1200330109
- Grassa CJ, Weiblen GD, Wenger JP, Dabney C, Poplawski SG, Motley ST, Michael TP, Schwartz CJ (2021). A new Cannabis genome assembly associates elevated cannabidiol (CBD) with hemp introgressed into marijuana. New Phytologist 230(4):1665–1679. doi:10.1111/nph.17243
- Laverty KU, Stout JM, Sullivan MJ, Shah H, Gill N, Holbrook L, Deikus G, Sebra R, Hughes TR, Page JE, van Bakel H (2019). A physical and genetic map of Cannabis sativa identifies extensive rearrangements at the THC/CBD acid synthase loci. Genome Research 29(1):146–156. doi:10.1101/gr.242594.118
- Livingston SJ, Quilichini TD, Booth JK, Wong DCJ, Rensing KH, Laflamme-Yonkman J, Castellarin SD, Bohlmann J, Page JE, Samuels AL (2020). Cannabis glandular trichomes alter morphology and metabolite content during flower maturation. The Plant Journal 101(1):37–56. doi:10.1111/tpj.14516
- Luo X, Reiter MA, d’Espaux L, Wong J, Denby CM, Lechner A, et al., Keasling JD (2019). Complete biosynthesis of cannabinoids and their unnatural analogues in yeast. Nature 567(7746):123–126. doi:10.1038/s41586-019-0978-9
- Morimoto S, Tanaka Y, Sasaki K, Tanaka H, Fukamizu T, Shoyama Y, Shoyama Y, Taura F (2007). Identification and characterization of cannabinoids that induce cell death through mitochondrial permeability transition in Cannabis leaf cells. Journal of Biological Chemistry 282(28):20739–20751. doi:10.1074/jbc.M700133200
- Sirikantaramas S, Morimoto S, Shoyama Y, Ishikawa Y, Wada Y, Shoyama Y, Taura F (2004). The gene controlling marijuana psychoactivity: molecular cloning and heterologous expression of Δ1-tetrahydrocannabinolic acid synthase from Cannabis sativa L. Journal of Biological Chemistry 279(38):39767–39774. doi:10.1074/jbc.M403693200
- Sirikantaramas S, Taura F, Tanaka Y, Ishikawa Y, Morimoto S, Shoyama Y (2005). Tetrahydrocannabinolic acid synthase, the enzyme controlling marijuana psychoactivity, is secreted into the storage cavity of the glandular trichomes. Plant and Cell Physiology 46(9):1578–1582. doi:10.1093/pcp/pci166
- Stout JM, Boubakir Z, Ambrose SJ, Purves RW, Page JE (2012). The hexanoyl-CoA precursor for cannabinoid biosynthesis is formed by an acyl-activating enzyme in Cannabis sativa trichomes. The Plant Journal 71(3):353–365. doi:10.1111/j.1365-313X.2012.04949.x
- Taura F, Tanaka S, Taguchi C, Fukamizu T, Tanaka H, Shoyama Y, Morimoto S (2009). Characterization of olivetol synthase, a polyketide synthase putatively involved in cannabinoid biosynthetic pathway. FEBS Letters 583(12):2061–2066. doi:10.1016/j.febslet.2009.05.024
- Taura F, Sirikantaramas S, Shoyama Y, Yoshikai K, Shoyama Y, Morimoto S (2007). Cannabidiolic-acid synthase, the chemotype-determining enzyme in the fiber-type Cannabis sativa. FEBS Letters 581(16):2929–2934. doi:10.1016/j.febslet.2007.05.043
- Wang M, Wang YH, Avula B, Radwan MM, Wanas AS, van Antwerp J, Parcher JF, ElSohly MA, Khan IA (2016). Decarboxylation study of acidic cannabinoids: a novel approach using ultra-high-performance supercritical fluid chromatography/photodiode array-mass spectrometry. Cannabis and Cannabinoid Research 1(1):262–271. doi:10.1089/can.2016.0020
- Weiblen GD, Wenger JP, Craft KJ, ElSohly MA, Mehmedic Z, Treiber EL, Marks MD (2015). Gene duplication and divergence affecting drug content in Cannabis sativa. New Phytologist 208(4):1241–1250. doi:10.1111/nph.13562