Match units before adding packages
Write the amount the recipe needs and the unit printed on the package. Half a kilogram is 500 g, so two 250 g bags meet the target. Check whether the recipe specifies a dry, cooked, drained, or otherwise prepared amount; those words describe different starting quantities and may change the purchase.
Keep weight and volume apart
Take extra care when one source measures by volume and the other by weight. A cup is not a fixed number of grams for every ingredient. Use an ingredient-specific conversion from the recipe author or choose a recipe with units you can verify.
If a recipe asks for a cup of flour but the bag lists grams, first check whether the recipe author provides the weight for that particular cup. A generic conversion from cups to grams cannot fit every ingredient. Record the conversion and its source once rather than guessing a different figure each time.
Compare the usable amount
A package may include liquid or portions you do not use. Read the relevant label and compare it with how the recipe describes the ingredient. If the figure is still uncertain and the recipe matters, ask the cook or choose a version using units you can verify. Buying an extra pack does not fix a misunderstood unit.