Sandstone is a clastic sedimentary rock composed mainly of sand-sized (0.0625 to 2 mm) silicate grains, cemented together by another mineral. Sandstones comprise about 20–25% of all sedimentary rocks.

Most sandstone is composed of quartz or feldspar because they are the most resistant minerals to the weathering processes at the Earth's surface. Like uncemented sand, sandstone may be imparted any color by impurities within the minerals, but the most common colors are tan, brown, yellow, red, grey, pink, white, and black. Because sandstone beds can form highly visible cliffs and other topographic features, certain colors of sandstone have become strongly identified with certain regions, such as the red rock deserts of Arches National Park and other areas of the American Southwest.

Rock formations composed of sandstone usually allow the percolation of water and other fluids and are porous enough to store large quantities, making them valuable aquifers and petroleum reservoirs.

Quartz-bearing sandstone can be changed into quartzite through metamorphism, usually related to tectonic compression within orogenic belts.

Origins

Sandstones are clastic in origin (as opposed to either organic, like chalk and coal, or chemical, like gypsum and jasper). The silicate sand grains from which they form are the product of physical and chemical weathering of bedrock. Weathering and erosion are most rapid in areas of high relief, such as volcanic arcs, areas of continental rifting, and orogenic belts.

Eroded sand is transported by rivers or by the wind from its source areas to depositional environments where tectonics has created accommodation space for sediments to accumulate. Forearc basins tend to accumulate sand rich in lithic grains and plagioclase. Intracontinental basins and grabens along continental margins are also common environments for deposition of sand.

As sediments continue to accumulate in the depositional environment, older sand is buried by younger sediments, and it undergoes diagenesis. This mostly consists of compaction and lithification of the sand. Early stages of diagenesis, described as eogenesis, take place at shallow depths (a few tens of meters) and are characterized by bioturbation and mineralogical changes in the sands, with only slight compaction. The red hematite that gives red bed sandstones their color is likely formed during eogenesis. Deeper burial is accompanied by mesogenesis, during which most of the compaction and lithification takes place.

Compaction takes place as the sand comes under increasing pressure from overlying sediments. Sediment grains move into more compact arrangements, ductile grains (such as mica grains) are deformed, and pore space is reduced. In addition to this physical compaction, chemical compaction may take place via pressure solution. Points of contact between grains are under the greatest strain, and the strained mineral is more soluble than the rest of the grain. As a result, the contact points are dissolved away, allowing the grains to come into closer contact.

Unroofing of buried sandstone is accompanied by telogenesis, the third and final stage of diagenesis. Most framework grains are composed of quartz or feldspar, which are the common minerals most resistant to weathering processes at the Earth's surface, as seen in the Goldich dissolution series. Framework grains can be classified into several different categories based on their mineral composition:

  • Quartz framework grains are the dominant minerals in most clastic sedimentary rocks; this is because they have exceptional physical properties, such as hardness and chemical stability. Many of these accessory grains are more dense than the silicates that make up the bulk of the rock. These heavy minerals are commonly resistant to weathering and can be used as an indicator of sandstone maturity through the ZTR index. Common heavy minerals include zircon, tourmaline, rutile (hence ZTR), garnet, magnetite, or other dense, resistant minerals derived from the source rock.

Matrix

Matrix is very fine material, which is present within interstitial pore space between the framework grains. The reaction is as follows.

:

Pore space

Pore space includes the open spaces within a rock or a soil. The pore space in a rock has a direct relationship to the porosity and permeability of the rock. The porosity and permeability are directly influenced by the way the sand grains are packed together.

  • A sandstone provenance chart is typically based on a QFL chart but allows geologists to visually interpret the different types of places from which sandstones can originate.
  • A stage of textural maturity chart shows the differences between immature, submature, mature, and supermature sandstones. As the sandstone becomes more mature, grains become more rounded, and there is less clay in the matrix of the rock. The philosophy behind combining Gilbert's and R. L. Folk's schemes is that it is better able to "portray the continuous nature of textural variation from mudstone to arenite and from stable to unstable grain composition". The grains are so tightly interlocked that when the rock is broken, it fractures through the grains to form an irregular or conchoidal fracture.

Geologists had recognized by 1941 that some rocks show the macroscopic characteristics of quartzite, even though they have not undergone metamorphism at high pressure and temperature. These rocks have been subject only to the much lower temperatures and pressures associated with diagenesis of sedimentary rock, but diagenesis has cemented the rock so thoroughly that microscopic examination is necessary to distinguish it from metamorphic quartzite. The term orthoquartzite is used to distinguish such sedimentary rock from metaquartzite produced by metamorphism. By extension, the term orthoquartzite has occasionally been more generally applied to any quartz-cemented quartz arenite. Orthoquartzite (in the narrow sense) is often 99% SiO<sub>2</sub> with only very minor amounts of iron oxide and trace resistant minerals such as zircon, rutile and magnetite. Although few fossils are normally present, the original texture and sedimentary structures are preserved.

The typical distinction between a true orthoquartzite and an ordinary quartz sandstone is that an orthoquartzite is so highly cemented that it will fracture across grains, not around them. This is a distinction that can be recognized in the field. In turn, the distinction between an orthoquartzite and a metaquartzite is the onset of recrystallization of existing grains. The dividing line may be placed at the point where strained quartz grains begin to be replaced by new, unstrained, small quartz grains, producing a mortar texture that can be identified in thin sections under a polarizing microscope. With increasing grade of metamorphism, further recrystallization produces foam texture, characterized by polygonal grains meeting at triple junctions, and then porphyroblastic texture, characterized by coarse, irregular grains, including some larger grains (porphyroblasts.) decorative art works and tools. It has been widely employed around the world in constructing temples, churches,

Although its resistance to weathering varies, sandstone is easy to work. That makes it a common building and paving material, including in asphalt concrete. However, some types that have been used in the past, such as the Collyhurst sandstone used in North West England, have had poor long-term weather resistance, necessitating repair and replacement in older buildings. Because of the hardness of individual grains, uniformity of grain size and friability of their structure, some types of sandstone are excellent materials from which to make grindstones, for sharpening blades and other implements. Non-friable sandstone can be used to make grindstones for grinding grain, e.g., gritstone.

A type of pure quartz sandstone, orthoquartzite, with more of 90–95 percent of quartz, has been proposed for nomination to the Global Heritage Stone Resource. In some regions of Argentina, the orthoquartzite-stoned façade is one of the main features of the Mar del Plata style bungalows.