Subcostal nerve

It runs along the lower border of the twelfth rib, often gives a communicating branch to the first lumbar nerve, and passes under the lateral lumbocostal arch.It then runs in front of the quadratus lumborum, innervates the transversus, and passes forward between it and the abdominal internal oblique to be distributed in the same manner as the lower intercostal nerves.It communicates with the iliohypogastric nerve and the ilioinguinal nerve of the lumbar plexus,[1][2] and gives a branch to the pyramidalis muscle and the quadratus lumborum muscle.[3] It also gives off a lateral cutaneous branch that supplies sensory innervation to the skin over the hip.This article incorporates text in the public domain from page 948 of the 20th edition of Gray's Anatomy (1918)
thoracic nervesAnatomical terms of neuroanatomylumbar plexustwelfth riblumbar nervelateral lumbocostal archquadratus lumborumtransversusabdominal internal obliquelower intercostal nervesiliohypogastric nerveilioinguinal nervepyramidalis musclequadratus lumborum muscleSubcostal arterySubcostal veinpublic domainGray's AnatomySpinal nervesCervicalanteriorCervical plexusBrachial plexusposteriorPosterior branches of cervical nervesSuboccipital – C1Greater occipital – C2Third occipital – C3ThoracicIntercostalIntercostobrachial – T2Thoraco-abdominal nerves – T7–T11Posterior branches of thoracic nervesLumbarLumbosacral trunkPosterior branches of the lumbar nervesSuperior cluneal L1–L3SacralSacral plexusPosterior branches of sacral nervesMedial cluneal nervesCoccygealCoccygeal plexusPosterior branch of coccygeal nerveneuroanatomy