---
title: Stock Update Fails with Decimal Quantities
description: WooCommerce stock not decrementing as expected with decimal quantities? Why it happens and how to fix it.
url: "https://wpfactory.com/docs/decimal-stock-update-issue/"
updated: "2026-10-05"
category: Troubleshooting
tags:
  - Min Max Default Quantity for WooCommerce
---

# Stock Update Fails with Decimal Quantities

If stock drops by a whole number after a decimal order, check that **Decimal quantities** is ticked at **WPFactory > Quantity Manager > General** in [Min Max Step Quantity Limits Manager for WooCommerce](https://wpfactory.com/item/product-quantity-for-woocommerce/) and that rounding is off. WooCommerce stores stock as whole numbers, and only that setting switches stock to decimals.

## Common symptoms

- Stock decreases by a whole number even though a decimal quantity was ordered.
- Stock does not change at all for decimal-quantity line items.
- An order with a decimal quantity cannot change status.
- A product shows "Out of stock" or "In stock" at the wrong moment.

## Cause

WooCommerce passes every stock amount through a whole-number conversion. When **Decimal quantities** is enabled, Quantity Manager replaces that conversion with a decimal one (up to 6 decimal places) and recalculates the stock status after each stock change. If the setting is off, another plugin converts stock back to whole numbers, or a rounding option is on, decimal quantities are lost before they reach stock.

## Fix

1. **Enable decimals.** In **WPFactory > Quantity Manager > General**, tick **Decimal quantities** and save. See [How to enable decimal quantities](https://wpfactory.com/docs/decimal-quantity-utilization/).
2. **Enable managed stock** on the product (WooCommerce **Inventory** tab) so quantities are tracked.
3. **Turn off rounding.** In **Advanced > Rounding Options**, set **Round on add to cart** and **Round with JavaScript** to **Do not round**, unless whole-number stock is what you want.
4. **Use the classic Cart and Checkout** (the `[woocommerce_cart]` and `[woocommerce_checkout]` shortcodes), where decimal handling is most reliable.
5. **Check other stock plugins.** Inventory sync, point of sale or stock report plugins can convert stock back to whole numbers. Temporarily deactivate them on a staging copy and place a test order.
6. **Correct old orders by hand.** Orders placed before decimals were enabled reduced stock in whole numbers, so adjust those products' stock manually once.
7. **Update** WooCommerce and Quantity Manager to the latest versions.

## How stock status is decided

After each stock change, the product is set to **In stock** while its stock is above WooCommerce's **Out of stock threshold** (WooCommerce > Settings > Products > Inventory). At or below it, the product becomes **On backorder** if backorders are allowed, otherwise **Out of stock**. With a threshold of 0, a product with 0.5 left stays in stock.

**Note:** decimal stock accounting is inherently more complex. Test thoroughly with your theme and gateway before going live.

## FAQ

### Does Quantity Manager support decimal stock?

Yes, when Decimal quantities is enabled. Stock is then stored and reduced with up to 6 decimal places.

### Can the out of stock threshold be a decimal?

No. Quantity Manager reads the threshold as a whole number when it recalculates the stock status, so enter whole values there.

### Can I keep the original quantity on each order line?

Yes. **Advanced > Save quantity in order item meta** stores the quantity in an extra order item field (default key `_wpfmmsq_qty`).

Related: [Cart or order page fails with decimal quantities](https://wpfactory.com/docs/decimal-quantity-order-issue/).

Still stuck? Our team answers every ticket on the [Quantity Manager support forum](https://wpfactory.com/support/item/product-quantity-for-woocommerce/).

Related articles

- [Decimal Quantities Causing Errors in Cart or Checkout](https://wpfactory.com/docs/decimal-quantity-errors/)
- [Customers Can Still Add Multiple Quantities to the Cart](https://wpfactory.com/docs/multiple-quantity-allowed/)
- [How to Validate and Auto-Correct Cart Quantities](https://wpfactory.com/docs/woocommerce-validate-auto-correct-quantities/)
- [How to Add a Buy All Stock Button](https://wpfactory.com/docs/woocommerce-buy-all-stock-button/)
- [How to Install Quantity Manager: Min, Max and Step Quantities for WooCommerce](https://wpfactory.com/docs/install-min-max-quantity/)

 

[![Min Max Default Quantity for WooCommerce](https://wpfactory.com/wp-content/uploads/Min-Max-Default-Quantity-for-WooCommerce.webp)](https://wpfactory.com/item/product-quantity-for-woocommerce/)
