In the title compound, C24H20N2O2, the six-membered pyran ring adopts a half-chair conformation with one C atom deviating from the mean plane of the remaining ring atoms by 0.654 (6) Å. The five-membered isoxazole ring adopts an N-envelope conformation with the N atom displaced by 0.742 (5) Å from the mean plane formed by the remaining ring atoms. The carbonitrile side chain is almost linear, with a C—C—N angle of 178.6 (5)°. The crystal packing is stabilized by intermolecular C—H⋯N interactions, through bifurcated acceptor hydrogen bonds formed between the carbonitrile N atom and two alternate C atoms in the unsubstituted benzene ring. The molecular structure and crystal packing are further stabilized by intramolecular and intermolecular C—H⋯π interactions.