40 grams of pistachio kernels is 1.41 oz (40 g). This amount is about the size of a large egg.

In kitchen measures
4.51 tablespoons
13.5 tsp · 4.51 tbsp · 0.282 cups
about the size of a large egg
Density estimated by AI from typical values. Pistachio kernels typically ranges 0.52–0.68 g/mL depending on how it's packed. A firmly packed scoop weighs more.