diff --git a/src/ipa/ipu3/algorithms/lsc.cpp b/src/ipa/ipu3/algorithms/lsc.cpp
index 729a23ff..1991d6ee 100644
--- a/src/ipa/ipu3/algorithms/lsc.cpp
+++ b/src/ipa/ipu3/algorithms/lsc.cpp
@@ -32,6 +32,9 @@ static constexpr unsigned int kMaxNumHCells = 73;
 static constexpr unsigned int kMaxNumVCells = 56;
 static constexpr int kColourTemperatureQuantization = 10;
 
+/* Gain of 1.0 in the UQ<2, 10> format of the LscAlgorithm gains */
+static constexpr uint16_t kUnityGain = 1 << 10;
+
 /**
  * \copydoc libcamera::ipa::Algorithm::init
  */
@@ -238,6 +241,11 @@ void Lsc::prepare([[maybe_unused]] IPAContext &context, [[maybe_unused]] const u
 	 * And that a base gain of 1.0 is added to those configured values. As a
 	 * gain of more than 5.0 is fairly unlikely, let's fix gain_factor to 0
 	 * for now and revisit if needed.
+	 *
+	 * Measurements on an OV9734 match this: a LUT value of 0 leaves the
+	 * image unchanged, and 1024 doubles it. As LscAlgorithm produces the
+	 * total gain, the base gain of 1.0 is subtracted when filling the LUT
+	 * below. Gains lower than 1.0 can't be represented and are clamped.
 	 */
 	config->general.gain_factor = 0;
 
@@ -260,12 +268,16 @@ void Lsc::prepare([[maybe_unused]] IPAContext &context, [[maybe_unused]] const u
 			       config->grid.grid_height_per_slice;
 	unsigned int i = 0;
 
+	const auto lutValue = [](uint16_t gain) -> uint16_t {
+		return gain > kUnityGain ? gain - kUnityGain : 0;
+	};
+
 	for (unsigned int s = 0; s < numSets; s++) {
 		for (unsigned int c = 0; c < cellsPerSet && i < totalCells; c++, i++) {
-			lut->sets[s].r_and_gr[c].r = set.at("r")[i];
-			lut->sets[s].r_and_gr[c].gr = set.at("gr")[i];
-			lut->sets[s].gb_and_b[c].gb = set.at("gb")[i];
-			lut->sets[s].gb_and_b[c].b = set.at("b")[i];
+			lut->sets[s].r_and_gr[c].r = lutValue(set.at("r")[i]);
+			lut->sets[s].r_and_gr[c].gr = lutValue(set.at("gr")[i]);
+			lut->sets[s].gb_and_b[c].gb = lutValue(set.at("gb")[i]);
+			lut->sets[s].gb_and_b[c].b = lutValue(set.at("b")[i]);
 		}
 	}
 
