A sawmill (saw mill, saw-mill) or lumber mill is a facility where logs are cut into lumber. Modern sawmills use a motorized saw to cut logs lengthwise to make long pieces, and crosswise to length depending on standard or custom sizes (dimensional lumber). The "portable" sawmill is simple to operate. The log lies flat on a steel bed, and the motorized saw cuts the log horizontally along the length of the bed, by the operator manually pushing the saw. The most basic kind of sawmill consists of a chainsaw and a customized jig ("Alaskan sawmill"), with similar horizontal operation.
Before the invention of the sawmill, boards were made in various manual ways, either rived (split) and planed, hewn, or more often hand sawn by two men with a whipsaw, one above and another in a saw pit below. The earliest known mechanical mill is the Hierapolis sawmill, a Roman water-powered stone mill at Hierapolis, Asia Minor dating back to the 3rd century AD. Other water-powered mills followed and by the 11th century they were widespread in Spain and North Africa, the Middle East and Central Asia, and in the next few centuries, spread across Europe. The circular motion of the wheel was converted to a reciprocating motion at the saw blade. Generally, only the saw was powered, and the logs had to be loaded and moved by hand. An early improvement was the development of a movable carriage, also water powered, to move the log steadily through the saw blade.
By the time of the Industrial Revolution in the 18th century, the circular saw blade had been invented, and with the development of steam power in the 19th century, a much greater degree of mechanisation was possible. Scrap lumber from the mill provided a source of fuel for firing the boiler. The arrival of railroads meant that logs could be transported to mills rather than mills being built beside navigable waterways. By 1900, the largest sawmill in the world was operated by the Atlantic Lumber Company in Georgetown, South Carolina, using logs floated down the Pee Dee River from the Appalachian Mountains. In the 20th century the introduction of electricity and high technology furthered this process, and now most sawmills are massive and expensive facilities in which most aspects of the work are computerized. Besides the sawn timber, use is made of all the by-products including sawdust, bark, woodchips, and wood pellets, creating a diverse offering of forest products.
A sawmill's basic operation is much like those of hundreds of years ago: a log enters on one end and dimensional lumber exits on the other end.
The Hierapolis sawmill, a water-powered stone sawmill at Hierapolis, Asia Minor (modern-day Turkey, then part of the Roman Empire), dating to the second half of the 3rd century, is the earliest known sawmill. It also incorporates a crank and connecting rod mechanism. 
Water-powered stone sawmills working with cranks and connecting rods, but without gear train, are archaeologically attested for the 6th century at the Byzantine cities Gerasa (in Asia Minor) and Ephesus (in Syria). 
The earliest literary reference to a working sawmill comes from a Roman poet, Ausonius, who wrote a topographical poem about the river Moselle in Germany in the late 4th century AD. At one point in the poem he describes the shrieking sound of a watermill cutting marble.  Marble sawmills also seem to be indicated by the Christian saint Gregory of Nyssa from Anatolia around 370–390 AD, demonstrating a diversified use of water-power in many parts of the Roman Empire. 
By the 11th century, hydropowered sawmills were in widespread use in the medieval Islamic world, from Islamic Spain and North Africa in the west to Central Asia in the east. 
Sawmills later became widespread in medieval Europe, as one was sketched by Villard de Honnecourt in c. 1225-1235.  They are claimed to have been introduced to Madeira following its discovery in c. 1420 and spread widely in Europe in the 16th century.  : 84–85
Prior to the invention of the sawmill, boards were rived (split) and planed, or more often sawn by two men with a whipsaw, using saddleblocks to hold the log, and a saw pit for the pitman who worked below. Sawing was slow, and required strong and hearty men. The topsawer had to be the stronger of the two because the saw was pulled in turn by each man, and the lower had the advantage of gravity. The topsawyer also had to guide the saw so that the board was of even thickness. This was often done by following a chalkline.
Early sawmills simply adapted the whipsaw to mechanical power, generally driven by a water wheel to speed up the process. The circular motion of the wheel was changed to back-and-forth motion of the saw blade by a connecting rod known as a pitman arm (thus introducing a term used in many mechanical applications).
Generally, only the saw was powered, and the logs had to be loaded and moved by hand. An early improvement was the development of a movable carriage, also water powered, to move the log steadily through the saw blade.
A type of sawmill without a crank is known from Germany called "knock and drop" or simply "drop" -mills. In these drop sawmills, the frame carrying the saw blade is knocked upwards by cams as the shaft turns. These cams are let into the shaft on which the waterwheel sits. When the frame carrying the saw blade is in the topmost position it drops by its own weight, making a loud knocking noise, and in so doing it cuts the trunk. 
A small mill such as this would be the center of many rural communities in wood-exporting regions such as the Baltic countries and Canada. The output of such mills would be quite low, perhaps only 500 boards per day. They would also generally only operate during the winter, the peak logging season.
In the United States, the sawmill was introduced soon after the colonisation of Virginia by recruiting skilled men from Hamburg. Later the metal parts were obtained from the Netherlands,  : 94–95 where the technology was far ahead of that in England, where the sawmill remained largely unknown until the late 18th century. The arrival of a sawmill was a large and stimulative step in the growth of a frontier community.
The Dutch windmill owner Cornelis Corneliszoon van Uitgeest invented in 1594 the wind-powered sawmill, which made the conversion of log timber into planks 30 times faster than before.  His wind-powered sawmill used a crankshaft to convert a windmill's circular motion into a back-and-forward motion powering the saw, and was granted a patent for the technique. 
Early mills had been taken to the forest, where a temporary shelter was built, and the logs were skidded to the nearby mill by horse or ox teams, often when there was some snow to provide lubrication. As mills grew larger, they were usually established in more permanent facilities on a river, and the logs were floated down to them by log drivers. Sawmills built on navigable rivers, lakes, or estuaries were called cargo mills because of the availability of ships transporting cargoes of logs to the sawmill and cargoes of lumber from the sawmill. 
The next improvement was the use of circular saw blades, perhaps invented in England in the late 18th century, but perhaps in 17th-century Netherlands. Soon thereafter, millers used gangsaws, which added additional blades so that a log would be reduced to boards in one quick step. Circular saw blades were extremely expensive and highly subject to damage by overheating or dirty logs. A new kind of technician arose, the sawfiler. Sawfilers were highly skilled in metalworking. Their main job was to set and sharpen teeth. The craft also involved learning how to hammer a saw, whereby a saw is deformed with a hammer and anvil to counteract the forces of heat and cutting. Modern circular saw blades have replaceable teeth, but still need to be hammered. 
The introduction of steam power in the 19th century created many new possibilities for mills. Availability of railroad transportation for logs and lumber encouraged building of rail mills away from navigable water. Steam powered sawmills could be far more mechanized. Scrap lumber from the mill provided a ready fuel source for firing the boiler. Efficiency was increased, but the capital cost of a new mill increased dramatically as well. 
In addition, the use of steam or gasoline-powered traction engines also allowed the entire sawmill to be mobile.  
By 1900, the largest sawmill in the world was operated by the Atlantic Lumber Company in Georgetown, South Carolina, using logs floated down the Pee Dee River from as far as the edge of the Appalachian Mountains in North Carolina.
A restoration project for Sturgeon's Mill in Northern California is underway, restoring one of the last steam-powered lumber mills still using its original equipment.
In the twentieth century the introduction of electricity and high technology furthered this process, and now most sawmills are massive and expensive facilities in which most aspects of the work is computerized. The cost of a new facility with 4,700-cubic-metre-per-day (2-million- board-foot -per- day ) capacity is up to CAN$120,000,000. A modern operation will produce between 240,000 to 1,650,000 cubic metres (100 to 700 million board feet) annually.
Small gasoline-powered sawmills run by local entrepreneurs served many communities in the early twentieth century, and specialty markets still today.
A trend is the small portable sawmill for personal or even professional use. Many different models have emerged with different designs and functions. They are especially suitable for producing limited volumes of boards, or specialty milling such as oversized timber. Portable sawmills have gained popularity for the convenience of bringing the sawmill to the logs and milling lumber in remote locations.  Some remote communities that have experienced natural disasters have used portable sawmills to rebuild their communities out of the fallen trees.
Technology has changed sawmill operations significantly in recent years, emphasizing increasing profits through waste minimization and increased energy efficiency as well as improving operator safety. The once-ubiquitous rusty, steel conical sawdust burners have for the most part vanished, as the sawdust and other mill waste is now processed into particleboard and related products, or used to heat wood-drying kilns. Co-generation facilities will produce power for the operation and may also feed superfluous energy onto the grid. While the bark may be ground for landscaping barkdust, it may also be burned for heat. Sawdust may make particle board or be pressed into wood pellets for pellet stoves. The larger pieces of wood that won't make lumber are chipped into wood chips and provide a source of supply for paper mills. Wood by-products of the mills will also make oriented strand board (OSB) paneling for building construction, a cheaper alternative to plywood for paneling. Some automatic mills can process 800 small logs into bark chips, wood chips, sawdust and sorted, stacked, and bound planks, in an hour.
A crankshaft is a mechanical component used in a piston engine to convert the reciprocating motion into rotational motion. The crankshaft is a rotating shaft containing one or more crankpins, that are driven by the pistons via the connecting rods.
Lumber is wood that has been processed into uniform and useful sizes, including beams and planks or boards. Lumber is mainly used for construction framing, as well as finishing. Lumber has many uses beyond home building. Lumber is sometimes referred to as timber as an archaic term and still in England, while in most parts of the world the term timber refers specifically to unprocessed wood fiber, such as cut logs or standing trees that have yet to be cut.
Decimius Magnus Ausonius was a Roman poet and teacher of rhetoric from Burdigala in Aquitaine, modern Bordeaux, France. For a time he was tutor to the future emperor Gratian, who afterwards bestowed the consulship on him. His best-known poems are Mosella, a description of the river Moselle, and Ephemeris, an account of a typical day in his life. His many other verses show his concern for his family, friends, teachers, and circle of well-to-do acquaintances and his delight in the technical handling of meter.
A circular saw is a power-saw using a toothed or abrasive disc or blade to cut different materials using a rotary motion spinning around an arbor. A hole saw and ring saw also use a rotary motion but are different from a circular saw. Circular saws may also be loosely used for the blade itself. Circular saws were invented in the late 18th century and were in common use in sawmills in the United States by the middle of the 19th century.
A watermill or water mill is a mill that uses hydropower. It is a structure that uses a water wheel or water turbine to drive a mechanical process such as milling (grinding), rolling, or hammering. Such processes are needed in the production of many material goods, including flour, lumber, paper, textiles, and many metal products. These watermills may comprise gristmills, sawmills, paper mills, textile mills, hammermills, trip hammering mills, rolling mills, wire drawing mills.
A saw is a tool consisting of a tough blade, wire, or chain with a hard toothed edge. It is used to cut through material, very often wood, though sometimes metal or stone. The cut is made by placing the toothed edge against the material and moving it forcefully forth and less vigorously back or continuously forward. This force may be applied by hand, or powered by steam, water, electricity or other power source. An abrasive saw has a powered circular blade designed to cut through metal or ceramic.
Portable sawmills are sawmills small enough to be moved easily and set up in the field. They have existed for over 100 years but grew in popularity in the United States starting in the 1970s, when the 1973 oil crisis and the back-to-the-land movement had led to renewed interest in small woodlots and in self-sufficiency. Their popularity has grown exponentially since 1982, when the portable bandsaw mill was first commercialized.
In woodworking, a rip-cut is a type of cut that severs or divides a piece of wood parallel to the grain. The other typical type of cut is a cross-cut, a cut perpendicular to the grain. Unlike cross-cutting, which shears the wood fibers, a rip saw works more like a series of chisels, lifting off small splinters of wood. The nature of the wood grain requires the shape of the saw teeth to be different thus the need for both rip saws and crosscut saws; however some circular saw blades are combination blades and can make both types of cuts. A rip cut is the fundamental type of cut made at a sawmill.
A crank is an arm attached at a right angle to a rotating shaft by which circular motion is imparted to or received from the shaft. When combined with a connecting rod, it can be used to convert circular motion into reciprocating motion, or vice versa. The arm may be a bent portion of the shaft, or a separate arm or disk attached to it. Attached to the end of the crank by a pivot is a rod, usually called a connecting rod (conrod).
A connecting rod, also called a 'con rod', is the part of a piston engine which connects the piston to the crankshaft. Together with the crank, the connecting rod converts the reciprocating motion of the piston into the rotation of the crankshaft. The connecting rod is required to transmit the compressive and tensile forces from the piston. In its most common form, in an internal combustion engine, it allows pivoting on the piston end and rotation on the shaft end.
A bandsaw is a power saw with a long, sharp blade consisting of a continuous band of toothed metal stretched between two or more wheels to cut material. They are used principally in woodworking, metalworking, and lumbering, but may cut a variety of materials. Advantages include uniform cutting action as a result of an evenly distributed tooth load, and the ability to cut irregular or curved shapes like a jigsaw. The minimum radius of a curve is determined by the width of the band and its kerf. Most bandsaws have two wheels rotating in the same plane, one of which is powered, although some may have three or four to distribute the load. The blade itself can come in a variety of sizes and tooth pitches, which enables the machine to be highly versatile and able to cut a wide variety of materials including wood, metal and plastic.
The ancient Romans were famous for their advanced engineering accomplishments. Technology for bringing running water into cities was developed in the east, but transformed by the Romans into a technology inconceivable in Greece. The architecture used in Rome was strongly influenced by Greek and Etruscan sources.
A saw pit or sawpit is a pit over which timber is positioned to be sawed with a long two-handled saw, usually a whipsaw, by two people, one standing above the timber and the other below. It was used for producing sawn planks from tree trunks, which could then be cut down into boards, pales, posts, etc. Many towns, villages and country estates had their own saw pits. The greatest user of sawn timber in past centuries was the shipbuilding industry. After falling, without bark, in smaller and more standardized sizes, and not intended as primary members in shipbuilding, the term 'timber' is often replaced by the term 'lumber'.
A frame saw or sash saw is a type of saw which consists of a relatively narrow and flexible blade held under tension within a rectangular frame. They are used for cutting wood or stone. The blade is held perpendicular to the plane of the frame, so that the material being cut passes through the center of the frame. Frame saws for use with wood are rip saws operated as a hand saw or powered in a sawmill. Frame saws used for cutting stone were powered saws in stone mills.
The Hierapolis sawmill was a Roman water-powered stone sawmill at Hierapolis, Asia Minor. Dating to the second half of the 3rd century AD, the sawmill is considered the earliest known machine to combine a crank with a connecting rod to form a crank slider mechanism.
A chainsaw mill or PortaMill or Logosol sawmill is a type of sawmill incorporating a chainsaw, that is used by one or two operators to mill logs into lumber for use in furniture, construction and other uses. Although often used as a generic term, Alaskan Mill is a registered trademark of Granberg International.
A log pond is a small natural lake or reservoir used for storage of wooden logs in readiness for milling at a sawmill. Although some mill ponds served this purpose for water-powered sawmills, steam-powered sawmills used log ponds for transportation of logs near the mill; and did not require the elevation drop of watermill reservoirs.
A swingblade sawmill utilizes a single circular sawblade which pivots about a 90 degree point, to saw in both vertical and horizontal planes. The single blade travels horizontally in one direction down the log, and returns in vertical position, thus removing a sawn piece of timber. The swingblade head unit is normally mounted on a moving frame that travels along a track or tracks, up and down a stationary log.