The pistachio (/pɪˈstɑːʃi.oʊ, -ˈstæʃ-/ pih-STAH-shee-oh, -⁠STASH-; Pistacia vera), a member of the cashew family, is a small to medium tree originating in Persia. The tree produces seeds that are widely consumed as food. The word can be countable or uncountable, meaning its plural is with or without an 's'.

In 2022, world production of pistachios was one million tonnes, with the United States, Iran, and Turkey combined accounting for 88% of the total.

The tree grows up to 10 metres (33 feet) tall. It has deciduous, pinnate leaves 10–20 centimetres (4–8 inches) long. The plants are dioecious, with separate male and female trees. The flowers are apetalous and unisexual and borne in panicles.

The fruit is a drupe, containing an elongated seed, which is the edible portion. The seed, commonly thought of as a nut, is a culinary nut, not a botanical nut. The fruit has a hard, cream-colored exterior shell. The seed has a mauve-colored skin and light green flesh, with a distinctive flavor. When the fruit ripens, the shell changes from green to an autumnal yellow/red and abruptly splits partly open. This is known as dehiscence, and happens with an audible pop. The splitting open is a trait that has been selected by humans.[5] Commercial cultivars vary in how consistently they split open.

Each mature pistachio tree averages around 50 kilograms (110 pounds) of seeds, or around 50,000, every two years.

Pistachio is from late Middle English pistace, from Old French, superseded in the 16th century by forms from Italian pistacchio, via Latin from Greek πιστάκιον pistákion, and from Middle Persian pistakē.Another name in Persian calling "smiling nuts" .

Pistachio is a desert plant and is highly tolerant of saline soil. It has been reported to grow well when irrigated with water having 3,000–4,000 ppm of soluble salts.[8] Pistachio trees are fairly hardy in the right conditions and can survive temperatures ranging between −10 °C (14 °F) in winter and 48 °C (118 °F) in summer. They need a sunny position and well-drained soil. Pistachio trees do poorly in conditions of high humidity and are susceptible to root rot in winter if they get too much water and the soil is not sufficiently free-draining.[9] Long, hot summers are required for proper ripening of the fruit.