Knowing where the bit is going is only half of drilling a good well; the other half is knowing what rock it is going through. Logging while drilling puts formation-evaluation sensors right behind the bit so that the properties of the rock are measured as it is drilled, instead of waiting to run wireline logs after the hole is finished. This guide explains what LWD sensors measure, how LWD differs from both MWD and conventional wireline logging, and why LWD curves are what let a geosteering team keep a horizontal well inside its target zone.
Logging While Drilling (LWD) in one line: Logging while drilling (LWD) is the practice of taking petrophysical measurements of the formation - such as gamma ray, resistivity, and porosity - with sensors built into the bottom-hole assembly while drilling is under way. It gives the crew a real-time formation log, which is essential in horizontal and directional wells because it reveals whether the bit is still in the reservoir and lets the trajectory be adjusted before the well drifts out of the pay zone.
LWD extends the MWD system by placing formation-evaluation sensors in drill collars near the bit. The most fundamental is the natural gamma ray measurement, which reads the natural radioactivity of the rock and is the classic way to distinguish shale from cleaner reservoir rock such as sandstone or carbonate. Resistivity is the next essential curve: by measuring how the formation resists electrical current, LWD helps distinguish hydrocarbon-bearing zones, which tend to be more resistive, from water-bearing zones, which conduct more readily. These two measurements alone answer many of the questions that matter while drilling.
Beyond gamma and resistivity, LWD tools can carry neutron and density sensors for porosity, sonic tools for acoustic velocity, and more advanced measurements such as nuclear-magnetic-resonance, formation pressure, and borehole imaging. Because these sensors sit inside a rotating steel collar just behind the bit, LWD engineering is a demanding exercise in packaging delicate physics into a tool that survives severe shock, vibration, and temperature. The measured curves are stored in downhole memory at high resolution and, bandwidth permitting, a selected subset is telemetered to surface in real time over the same mud-pulse or EM link the MWD survey uses.
It helps to separate three related ideas. MWD is about direction - inclination, azimuth, and toolface - answering where the well is going. LWD is about the formation - gamma ray, resistivity, porosity - answering what the well is going through. In the field the two are run together in one bottom-hole assembly and share a single telemetry channel to surface, so the terms are sometimes used loosely, but the distinction between directional and petrophysical measurement is real and worth keeping straight.
The contrast with wireline logging is about timing and how the data is acquired. Wireline logs are run on a cable after a hole section is drilled, lowering the tools into an open, stationary borehole, which allows large, power-hungry, high-resolution instruments but means the formation has already been exposed to drilling fluid for some time and the operation costs rig time with the pipe out of the hole. LWD measures the formation soon after the bit passes, when the rock is fresh and invasion is minimal, and does so without a separate trip. The measurements are broadly comparable but not identical, since the two are made in different environments and geometries, so operators often value LWD for its early, real-time reading and for wells where running wireline in a high-angle hole would be difficult.
The payoff of LWD is geosteering. In a horizontal well the goal is to keep the wellbore inside a thin, undulating target layer, and the only way to know whether the bit is still in that layer is to read the rock in real time. Geologists compare the incoming LWD gamma and resistivity against a reference log and a geological model, and when the curves signal that the well is approaching the top or base of the target, they call for the directional driller to steer the trajectory back into the sweet spot. This tight loop between LWD measurement and directional response is what makes long, productive horizontal laterals possible.
Because geosteering decisions are time-critical and often involve specialists who are not at the wellsite, LWD data is routinely streamed off the rig into shared, cloud-based dashboards where the geosteerer, the drilling engineer, and the operator's subsurface team all watch the same curves as they arrive. A cloud SCADA platform such as Merobix, which ingests live tags from field devices over protocols like OPC UA and MQTT and presents them as browser trends and displays, is the kind of layer that lets these curves be viewed, correlated, and alarmed alongside surface drilling parameters from anywhere. The LWD tool provides the formation truth downhole; the streaming and visualization layer turns that stream into a collaborative, real-time steering decision.
LWD measures the formation with sensors in the drill string while the well is being drilled, giving a real-time log soon after the bit passes and without a separate run. Wireline logging lowers tools on a cable after a section is drilled, allowing larger high-resolution instruments but costing rig time and reading a borehole that has already been exposed to drilling fluid. The two are complementary, and many wells use both.
The core LWD measurements are natural gamma ray, which distinguishes shale from cleaner reservoir rock, and resistivity, which helps separate hydrocarbon zones from water zones. Many LWD strings add neutron and density sensors for porosity, and more advanced tools can include sonic, nuclear-magnetic-resonance, formation-pressure, and imaging measurements.
Geosteering keeps a horizontal well inside a thin target layer, and LWD provides the real-time gamma and resistivity readings that reveal whether the bit is still in that layer. When the curves show the well approaching the top or base of the zone, the geosteering team directs the driller to adjust the trajectory, closing the loop between formation measurement and directional control while drilling continues.
This page references the protocol specifications published by the organizations below. Editions, product capabilities, and documentation change over time - confirm current requirements and specifications directly with the source.
Last reviewed: July 27, 2026. Merobix is not affiliated with, endorsed by, or sponsored by these organizations; their names are used only to identify the standards and products discussed.
Merobix reads your field devices into a cloud SCADA - the real thing behind these terms, live in days from any browser.