# MAF Tuning an LS From a Datalog (Gen III)

> How to tune the MAF curve on a Gen III LS from a datalog: log fuel trims or wideband AFR, bin the error by frequency and correct airflow in small, safe steps.

Source: https://tunebench.org/guides/maf-tuning-ls-from-datalog/

Guide · Fueling

## MAF tuning an LS from a datalog.

The MAF curve turns sensor frequency into airflow. When it is off, trims climb. Here is how to correct it from a log.

Updated November 2026 6 min read By Ridgeline Software Co.

## How do you tune the MAF curve from a datalog?

Log a warm, varied drive with the MAF frequency, fuel trims and ideally a wideband. Group the samples by MAF frequency, average the error in each group, then change the airflow at that frequency by a fraction of the error. Write, log again and repeat until the error is small. Make small changes each pass and keep your stock file.

## What the MAF table does

The mass airflow sensor outputs a frequency. The MAF table (the calibration's frequency to airflow curve) converts that frequency into grams per second, and the PCM uses the airflow to decide how much fuel to add. If the curve reads too low at some frequency, the engine runs lean there. If it reads too high, it runs rich. The curve usually needs work after a new intake, a larger throttle body, a different sensor housing or a cam swap. See [tuning after a cam swap](https://tunebench.org/guides/ls-cam-swap-tune/).

## Fuel trims or wideband

Fuel trims (short term plus long term) need no extra hardware and are meaningful in closed loop, which covers idle, cruise and light throttle. A wideband sensor adds information in open loop and at wide open throttle, where trims stop working. A good plan is to do the first passes on trims, then confirm with a wideband. We recommend a wideband for any real tuning work.

## Keep one airflow source in play

The PCM can estimate airflow from the MAF or from the VE table (speed density), and a tune can be arranged to lean on one more than the other. When you correct the MAF, do not edit VE at the same time, or you will not know which change fixed what. Many people tune the VE with the MAF out of the picture and then tune the MAF with VE left alone. Change only the airflow source you are working on, and note which one it is. For the VE side, see [VE table tuning from a datalog](https://tunebench.org/guides/ve-table-tuning-from-datalog/).

## Steps

1. Read the PCM and keep the stock file: [read and back up your PCM](https://tunebench.org/guides/read-and-back-up-your-ls-pcm/).
2. Log a warm drive with RPM, MAF frequency, MAF airflow, MAP, short and long term trims, and a wideband if you have one. Include steady cruise at several speeds and gentle acceleration.
3. Check for causes other than the curve: leaks after the sensor, a dirty or damaged sensor, a loose clamp.
4. Bin the error by MAF frequency. Ignore frequencies with only a few samples.
5. Correct the airflow at each frequency by a fraction of the error, then smooth so the curve keeps rising with frequency.
6. Write the change and log again. Repeat two or three times.

## Doing it in TuneBench

Open the MAF table and use the log correction. Pick your log and a preset such as MAF from wideband or fuel trims, set the strength, the maximum change per cell and the minimum samples, preview the result and apply. Every apply can be undone, and the Changes view shows what moved against stock. Details are on the [tune from log](https://tunebench.org/features/tune-from-log/) page.

## Reading the log

Look at the whole picture before you change anything. Trims that sit high at one frequency range and low at another point to a curve that is the wrong shape, not just the wrong height. Trims that are off by the same amount everywhere usually point to something else, such as fuel pressure, injector data or a leak. Steady cruise gives the cleanest data, because airflow is stable and the PCM has time to settle. Sharp throttle changes smear the data, so TuneBench lets you require a minimum number of samples per cell to ignore them.

## Staying safe

- Make small changes. Five percent per pass is plenty.
- Do not tune around a problem. If trims are pinned or the engine misfires, fix that first.
- Use a wideband for anything at high load.
- Keep every tune version so you can go back.
- Work on a warm engine and a charged battery, since both change the data you are fitting.

A short drive that covers your normal use is better than one long hard pull. Most of the time a street engine lives at idle, cruise and light throttle, so that is where an accurate curve pays off first.

## Let the app bin the error for you.

Free to read, edit and log. License a Gen III LS for $50 when you're ready to write.
