Floral nectar composition beyond common sugars shows great diversity but contributing genetic factors are generally unknown. Mānuka (Leptospermum scoparium) is renowned for the antimicrobial compound methylglyoxal in its derived honey, which originates from the precursor, dihydroxyacetone (DHA), accumulating in the nectar. Although this nectar trait is highly variable, genetic contribution to the trait is unclear. Therefore, we investigated key gene(s) and genomic regions underpinning this trait. We used RNAseq analysis to identify nectary-associated genes differentially expressed between high and low nectar DHA genotypes. We also used a mānuka high-density linkage map and quantitative trait loci (QTL) mapping population, supported by an improved genome assembly, to reveal genetic regions associated with nectar DHA content. Expression and QTL analyses both pointed to the involvement of a phosphatase gene, LsSgpp2. The expression pattern of LsSgpp2 correlated with nectar DHA accumulation, and it co-located with a QTL on chromosome 4. The identification of three QTLs, some of the first reported for a plant nectar trait, indicates polygenic control of DHA content. We have established plant genetics as a key influence on DHA accumulation. The data suggest the hypothesis of LsSGPP2 releasing DHA from DHA-phosphate and variability in LsSgpp2 gene expression contributing to the trait variability.