diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp
index 350f49accad9..8f09206ff635 100644
--- a/src/libcamera/camera_sensor.cpp
+++ b/src/libcamera/camera_sensor.cpp
@@ -508,6 +508,18 @@ int CameraSensor::sensorInfo(CameraSensorInfo *info) const
 		return ret;
 	}

+	/*
+	 * The top-left corner position of the selection rectangle returned by
+	 * the V4L2_SEL_TGT_CROP target is defined relatively to the full pixel
+	 * array, while libcamera's analogCrop is defined relatively to the
+	 * active portion of the pixel matrix.
+	 *
+	 * Subtract from the top-left coordinates the offsets of the
+	 * CROP_DEFAULT target rectangle to align the two.
+	 */
+	info->analogCrop.x -= rect.x;
+	info->analogCrop.y -= rect.y;
+
 	/* The bit depth and image size depend on the currently applied format. */
 	V4L2SubdeviceFormat format{};
 	ret = subdev_->getFormat(pad_, &format);
