Sandstone is made of sand-sized mineral grains, mostly quartz, that have been compacted and cemented together over millions of years. The grains range from 0.0625 to 2 millimeters in diameter, roughly the size of fine sugar to coarse sea salt. What transforms loose sand into solid rock is a combination of burial pressure and natural mineral “glue” that crystallizes in the tiny spaces between grains.
The Raw Ingredients
Quartz is the dominant mineral in most sandstone because it’s extremely hard and resists chemical breakdown. A pure quartz sandstone, called a quartz arenite, contains more than 90 percent quartz grains. But not all sandstone is that pure. When sandstone contains 25 percent or more feldspar (a mineral common in granite), geologists classify it as arkose. Sandstone packed with fine clay and silt between its grains is called graywacke, or wacke. These different recipes reflect where the original sand came from and how far it traveled before settling.
The grains themselves are fragments of older rocks that were broken down by weathering and erosion. A granite mountain, for instance, slowly crumbles into individual mineral grains. Rivers, wind, and waves carry those grains away, knocking off sharp edges along the journey. Sand that has traveled a long distance tends to be well-rounded and well-sorted, meaning the grains are similar in size. Sand deposited close to its source is typically more angular and mixed in size.
Where Sand Accumulates
Sand piles up in a surprisingly wide range of environments, and each one leaves a signature in the final rock. The most familiar settings are beaches and desert dunes, but sand also collects along riverbeds, at the mouths of deltas where rivers meet the sea, at the edges of glaciers, and even on the deep ocean floor where underwater landslides called turbidity currents sweep sediment down continental slopes.
Beach and coastal sands tend to produce “clean” sandstone because wave action washes away fine mud, leaving well-sorted grains with plenty of pore space. Desert dune sands are similarly well-sorted by wind. River and delta sands, on the other hand, often contain more mud and a wider mix of grain sizes, producing denser, less porous rock.
How Loose Sand Becomes Solid Rock
The transformation from sand to sandstone is called lithification, and it happens in two main stages: compaction and cementation.
Compaction comes first. As more sediment buries the sand layer, the weight of the overlying material squeezes grains closer together. Freshly deposited sand can have a porosity of 39 to 56 percent, meaning nearly half the volume is empty space filled with water or air. Burial alone can reduce that to around 33 percent as grains rearrange and pack more tightly. In some cases, the pressure is intense enough to partially dissolve quartz grains at the points where they press against each other, allowing them to interlock even more closely.
Cementation is what truly turns the deposit into rock. Groundwater flowing through the remaining pore spaces carries dissolved minerals. Over time, those minerals precipitate out of the water and crystallize on the surfaces of the sand grains, gradually filling gaps and binding everything together. The three most common cements are quartz (silica), calcite, and hematite (iron oxide). After cementation, porosity in a typical sandstone drops further, often landing somewhere between 8 and 22 percent depending on how thoroughly the cement filled the spaces.
What Gives Sandstone Its Color
The cement, more than the grains themselves, controls sandstone’s color. Iron oxide cement produces the warm reds and oranges you see in places like the American Southwest. These “red beds” form when iron in the sediment is exposed to oxygen, rusting into the same compound that makes steel turn red. White and light gray sandstones are typically cemented with quartz or calcite, which are colorless to white. Dark gray or black sandstones get their color from organic matter or iron sulfide minerals, which indicate the sand was buried in an oxygen-poor environment where organic material couldn’t fully decompose.
Calcite cement is the most common type overall, though it tends to be patchy rather than filling every pore uniformly. Because calcite dissolves relatively easily in slightly acidic surface water, sandstones cemented with calcite can develop secondary pore spaces over time as the cement slowly washes away. Quartz cement, by contrast, is much more durable and creates a harder, more resistant rock.
Why Porosity Matters
The space left between grains after cementation is what makes sandstone one of the most important rock types on Earth for practical purposes. Those pore spaces store and transmit fluids. Sandstone aquifers supply drinking water to communities around the world, and sandstone reservoirs deep underground hold enormous quantities of oil and natural gas.
How well a sandstone stores and transmits fluid depends on two things: porosity (how much empty space exists) and permeability (how well those spaces connect to each other). A sandstone with well-sorted, medium-sized grains and minimal clay in the pores will have high permeability because fluids can flow freely from one pore to the next. A sandstone clogged with fine clay particles or heavily cemented with calcite will have low permeability, even if some pore space remains. The highest-quality reservoir sandstones tend to form in high-energy environments like beaches, barrier islands, and river channels, where the sorting action of waves and currents removes fine sediment and leaves behind clean, uniformly sized grains.
The Main Types of Sandstone
- Quartz arenite: More than 90 percent quartz grains, very little feldspar or rock fragments. Usually white to light gray, very hard when cemented with silica. Forms from sand that has been extensively weathered and transported.
- Arkose: Contains 25 percent or more feldspar, giving it a pinkish or reddish tint. Typically forms near granite source rocks where feldspar hasn’t had time to break down. Common in rift valleys and mountain-front deposits.
- Graywacke: A “dirty” sandstone with abundant clay and silt filling the spaces between grains. Usually dark gray or greenish gray. Often associated with deep-sea deposits formed by turbidity currents.
- Subarkose: A middle ground containing 10 to 25 percent feldspar. More mature than arkose but not as pure as quartz arenite.
These categories exist on a spectrum. The more weathering and transport the original sand experiences, the more feldspar and soft minerals break down, pushing the composition toward pure quartz. A quartz arenite represents sand that has been recycled through multiple rounds of erosion and deposition, sometimes over hundreds of millions of years, until only the most durable mineral remains.

