
Inmechanics,compression is the application of balanced inward ("pushing")forces to different points on a material orstructure, that is, forces with nonet sum ortorque directed so as to reduce its size in one or more directions.[1] It is contrasted withtension or traction, the application of balanced outward ("pulling") forces, and withshearing forces, directed so as to displace layers of the material parallel to each other. Thecompressive strength of materials and structures is an important engineering consideration.
Inuniaxial compression, the forces are directed along one direction only, so that they act towards decreasing the object's length along that direction.[2] The compressive forces may also be applied in multiple directions; for example inwards along the edges of a plate or all over the side surface of acylinder, so as to reduce itsarea (biaxial compression), or inwards over the entire surface of a body, so as to reduce itsvolume.
Technically, a material is under a state of compression, at some specific point and along a specific direction, if thenormal component of thestress vector across a surface withnormal direction is directed opposite to. If the stress vector itself is opposite to, the material is said to be undernormal compression orpure compressive stress along. In asolid, the amount of compression generally depends on the direction, and the material may be under compression along some directions but under traction along others. If the stress vector is purely compressive and has the same magnitude for all directions, the material is said to be underisotropic compression,hydrostatic compression, orbulk compression. This is the only type of static compression thatliquids andgases can bear.[3] It affects the volume of the material, as quantified by thebulk modulus and thevolumetric strain.
The inverse process of compression is calleddecompression,dilation, orexpansion, in which the object enlarges or increases in volume.
In amechanical wave, which islongitudinal, the medium is displaced in the wave's direction, resulting in areas of compression andrarefaction.
When put under compression (or any other type of stress), every material will suffer somedeformation, even if imperceptible, that causes the average relative positions of its atoms and molecules to change. The deformation may be permanent, or may be reversed when the compression forces disappear. In the latter case, the deformation gives rise to reaction forces that oppose the compression forces, and may eventually balance them.[4]
Liquids and gases cannot bear steady uniaxial or biaxial compression, they will deform promptly and permanently and will not offer any permanent reaction force. However they can bearisotropic compression, and may be compressed in other ways momentarily, for instance in asound wave.

Every ordinary material will contract in volume when put under isotropic compression, contract in cross-section area when put under uniform biaxial compression, and contract in length when put into uniaxial compression. The deformation may not be uniform and may not be aligned with the compression forces. What happens in the directions where there is no compression depends on the material.[4] Most materials will expand in those directions, but some special materials will remain unchanged or even contract. In general, the relation between the stress applied to a material and the resulting deformation is a central topic ofcontinuum mechanics.

Compression of solids has many implications inmaterials science,physics andstructural engineering, for compression yields noticeable amounts ofstress andtension.
By inducing compression, mechanical properties such ascompressive strength ormodulus of elasticity, can be measured.[5]
Compression machines range from very small table top systems to ones with over 53 MN capacity.
Gases are often stored and shipped in highlycompressed form, to save space. Slightly compressed air or other gases are also used to fillballoons,rubber boats, and otherinflatable structures. Compressed liquids are used inhydraulic equipment and infracking.
Ininternal combustion engines the explosive mixture gets compressed before it is ignited; the compression improves the efficiency of the engine. In theOtto cycle, for instance, the second stroke of the piston effects the compression of the charge which has been drawn into the cylinder by the first forward stroke.[6]
The term is applied to the arrangement by which the exhaust valve of asteam engine is made to close, shutting a portion of the exhaust steam in thecylinder, before the stroke of the piston is quite complete. This steam being compressed as the stroke is completed, a cushion is formed against which thepiston does work while its velocity is being rapidly reduced, and thus the stresses in the mechanism due to the inertia of the reciprocating parts are lessened.[7] This compression, moreover, obviates the shock which would otherwise be caused by the admission of the fresh steam for the return stroke.