Skip to content
Sri Lanka · Sinhala, Tamil & English

Selling by carton, box and piece: how to set up units in your stock

By RealCloud TeamLast updated 7 min read

How to handle items you buy in one unit and sell in another, such as cartons and pieces, bags and kilos or rolls and metres: base and alternate units, the conversion factor, a worked example, common mistakes, and the limits for batch- and serial-tracked items in RealCloud.

To sell the same item by carton and by piece, give it a base unit (the smallest unit you sell, such as a piece), an alternate unit (the carton) and a conversion factor (how many pieces are in a carton). Stock is then kept in the base unit, and every purchase, sale and count in either unit is converted for you. In RealCloud, this works for ordinary items, but not for batch- or serial-tracked ones.

This guide is for hardware shops, grocers and wholesalers who buy in bulk and sell in smaller quantities, and want the stock to stay right.

The problem: buy one way, sell another

A supplier sells you a carton of 24 pieces, a bag of 50 kilos or a roll of 50 metres. Your customers want 6 pieces, 2 kilos or 7 metres. If the system only knows one unit, you end up with one of these:

  • stock counted in cartons, with fractions that nobody understands,
  • every purchase typed as a number of pieces by hand, with arithmetic mistakes,
  • two separate products for the carton and the piece that never agree.

Units of measure solve this: one product, one stock figure, two ways to buy and sell it.

The three ideas

TermMeaningExample
Base unitThe smallest unit you count and sell. Stock is kept in this unitPiece
Alternate unitA larger unit you use to buy or sellCarton
Conversion factorHow many base units make one alternate unit1 carton = 24 pieces

You also choose which unit is the default when you sell and when you buy, so staff do not pick one each time. A shop that buys cartons and sells pieces would default purchases to cartons and sales to pieces.

Worked example

A product comes in cartons of 24 pieces. The carton costs Rs. 7,200.00, and you sell each piece at Rs. 360.00.

StepCalculationResult
Conversion factor1 carton = 24 pieces24
Cost per pieceRs. 7,200.00 / 24Rs. 300.00
Margin per pieceRs. 360.00 - Rs. 300.00Rs. 60.00 (about 17% of the selling price)
You buy 10 cartons10 x 24240 pieces in stock
You sell 30 pieces240 - 30210 pieces in stock
Stock in cartons210 / 248 cartons and 18 pieces

The stock figure never has to be a fraction of a carton. It is always whole pieces, and you read it in cartons only when that helps.

Other common pairs

  • Bags and kilos. A 50 kg bag bought whole and sold by the kilo: base unit kilo, alternate unit bag, factor 50.
  • Rolls and metres. A 50 m cable roll sold by the metre: base unit metre, alternate unit roll, factor 50.
  • Boxes and pieces. A box of 100 screws sold loose: base unit piece, alternate unit box, factor 100.
  • Dozens and pieces. Base unit piece, alternate unit dozen, factor 12.

If your supply chain has more than one step (carton of boxes of pieces), choose the two units you actually transact in.

Setting up a product: a short checklist

  1. Decide the smallest unit you will ever sell. That is the base unit.
  2. Decide the larger unit you buy or sell in. That is the alternate unit.
  3. Count the base units inside one alternate unit. That is the conversion factor.
  4. Set the default purchase unit and default sales unit.
  5. Enter your purchase, wholesale and sales prices, and check which unit each price refers to.
  6. Test it: record one purchase in the alternate unit and one sale in the base unit, then read the stock figure and the cost per base unit.

Do this when you create the product, before you start trading it. It is much harder to untangle a product that has already been bought and sold in the wrong unit.

Wholesale and retail units

Many traders sell the carton to a shop and the piece to a walk-in customer, often at different prices. A simple approach: keep one product, sell cartons to trade buyers and pieces over the counter, and keep a wholesale price in addition to the regular price. Review the margin per piece on both, because a carton price that looks generous per carton may leave a thin margin per piece.

Common mistakes

  • Factor upside down. Writing 1/24 instead of 24. The factor is base units per alternate unit.
  • Wrong base unit. Making the carton the base unit, then selling "0.25 of a carton".
  • Price in the wrong unit. Entering the carton price as the piece price, or the reverse. After setting up, test with one purchase and one sale and read the line.
  • Changing the factor later. If a supplier changes the pack size from 24 to 20, existing stock does not change. Agree with your accountant and team how to handle a change.
  • Uneven division. A carton price that does not divide evenly gives a per-piece cost with rounding.
  • Counting in mixed units. Cartons and pieces on one count sheet. See how to do a stock count.
  • Entering imports in the wrong unit. Make sure the quantity on the goods received note matches what you will sell. See what is a GRN.

Costing and units

Think of cost per base unit. If you buy a carton for Rs. 7,200 and it holds 24 pieces, each piece costs Rs. 300. For imports, freight and duty are spread over the items received, and then over the units, before you read the per-piece cost. See landed cost explained.

How RealCloud handles it

RealCloud is cloud accounting, inventory, billing and POS software, with an online store, built for Sri Lankan businesses.

  • Base unit and alternate unit. Each product can have a base unit plus an alternate unit with a conversion factor.
  • Default units. Set a default sales unit and a default purchase unit, so cartons are bought and pieces are sold without typing the conversion each time.
  • One stock figure. Stock stays in one count, whichever unit the transaction uses. Weighted-average costing is per store.
  • Limit: batch and serial items. Alternate units are not available for batch- or serial-tracked items. Items with an expiry date or a serial number use a single unit. Pick the unit you sell in, and when you receive cartons, enter the quantity in that unit (10 cartons of 24 is 240 pieces).
  • Online store. Orders from your RealCloud online store arrive as sales orders using the same products and stock, so they use the same units.

RealCloud does not do price books or customer-specific price tables. You can keep sales, wholesale and purchase prices on the product, and the invoice and POS show the last price a customer paid. See how units work for hardware shops, grocery shops and wholesalers, or ask for a free demo call.

Frequently asked questions

What is a conversion factor?

It is the number of base units in one alternate unit. If the base unit is a piece and a carton holds 24 pieces, the conversion factor is 24. The system uses it to turn a quantity in cartons into pieces and back, so stock stays correct whichever unit you use.

Which unit should be the base unit?

Choose the smallest unit you ever sell or count, usually the piece, the metre or the kilo. Stock is then counted in whole base units, and larger units such as cartons are simply a multiple of it.

Can I use alternate units on batch- or serial-tracked items in RealCloud?

No. Alternate units are not available for batch- or serial-tracked items, so those items use a single unit. If you buy such an item in cartons but track by batch or serial, pick one unit for the item, receive and sell in that unit, and enter the quantity accordingly, for example 240 pieces for 10 cartons of 24.

How do I work out the cost of one piece from a carton price?

Divide the carton cost by the number of pieces in it. A carton that costs Rs. 7,200 with 24 pieces costs Rs. 300 a piece. If the division does not come out evenly, such as Rs. 7,000 divided by 24, which is about Rs. 291.67, expect small rounding differences.

What happens to my stock count if I count in cartons?

Decide the counting unit before you count and write it on the count sheet. Mixing cartons and pieces on the same item is one of the commonest causes of stock differences. Counting loose pieces plus full cartons, then converting to one unit, avoids it.

Do alternate units work for rolls and metres or bags and kilos?

Yes, the idea is the same: a base unit, a larger unit and a conversion factor between them. A 50-metre roll sold by the metre, or a 50-kilo bag sold by the kilo, are set up just like a carton of pieces.

Related guides

How to do a stock count in a Sri Lankan shop, step by step

A step-by-step guide to counting stock in a shop or warehouse: when to do a full count and when a partial count is enough, how to prepare, how to count, how to investigate differences and how to turn them into stock adjustments, including how RealCloud generates the adjustments.

Updated 1 November 2026 · 6 min read

GRN full form: what a goods received note is

GRN full form is goods received note: your record of what a supplier actually delivered. How it differs from a purchase order and an invoice, what a pre-GRN is, a simple example, and why it is not a payment receipt.

Updated 11 November 2026 · 9 min read

Landed cost explained: how to cost imported stock in Sri Lanka

A practical guide to landed cost for Sri Lankan importers and traders: what to include, how to spread freight, duty, insurance and clearing across items by value, quantity or by hand, how to use estimates and true them up, and when to capitalize or expense a cost.

Updated 1 November 2026 · 7 min read

Get a free demo call

Leave your number—we will call you back in Sinhala, Tamil, or English.

Get a free demo call

+94