The statistical mechanics of stiff polymer chains confined within narrow tubes is a foundational topic in polymer physics, extensively analyzed in prior research. For cylindrical, rectangular, and slit-like confinements, the chains’ free energy and extension adhere to a scaling law consistent with the Odijk theory. While this scaling law may not apply to tubes with different cross-sectional geometries, there is a lack of research examining the behavior of stiff chains in tubes with intricate cross-sectional shapes. In this study, we investigate the partition function of a stiff chain confined within an elliptic tube using the path integral approach, deriving a deflection length in a concise closed form through dimensional analysis. This length scale facilitates straightforward expressions for the chain's free energy and extension. Notably, we discover a shape-independent property of these expressions applicable to tubes with a wide variety of cross-sectional geometries. Extensive numerical simulations are conducted using a biased chain-growth Monte Carlo method, incorporating the Pruned and Enriched Rosenbluth algorithm, to validate the theoretical predictions on the confinement free energy and extension of chains in tubes with differing shapes.