Most unit converters get away with a single constant: 5,280 feet in a mile, 2.54 cm in an inch. Indian land units break that assumption. The bigha, still common in land deals across north and east India, has a different size depending on the state, and some states use more than one. If you build a converter with const SQFT_PER_BIGHA = 27225, it will be right in Uttar Pradesh and wrong by a factor of four in the Uttarakhand hills.
Here is a data-first approach that handles this cleanly.
Pick one base unit
Convert everything through a single base unit. Square feet works well: the acre is exactly 43,560 sq ft, and buyers in India can picture square feet. Every regional unit then becomes one number: its size in square feet.
Store units as data, keyed by region and variant
const ACRE_SQFT = 43560;
// Commonly cited reference values, not statutory figures
const BIGHA_SQFT = {
"uttar-pradesh": { pucca: 27225, kaccha: 9075 },
"bihar": { standard: 27225 },
"west-bengal": { standard: 14400 },
"gujarat": { standard: 17424, "20-guntha": 21780 },
"punjab": { standard: 21780, "local-smaller": 9072 },
"himachal": { standard: 8712 },
"uttarakhand": { hills: 6806.25, plains: 17424 },
};
function acresToBigha(acres, state, variant) {
const table = BIGHA_SQFT[state];
const size = table?.[variant ?? Object.keys(table ?? {})[0]];
if (!size) throw new Error(`No bigha size for ${state}/${variant}`);
return (acres * ACRE_SQFT) / size;
}
acresToBigha(1, "uttar-pradesh", "pucca"); // 1.6
acresToBigha(1, "himachal"); // 5
acresToBigha(1, "uttarakhand", "hills"); // 6.4
Design decisions worth copying
Never average variants. A "national average bigha" is a number that matches nobody's land record. If a state has pucca and kaccha sizes, show both and make the user choose.
Fail loudly on unknown regions. Returning a default for an unlisted state produces a confident wrong answer. Throwing an error, or showing "not covered", is more honest.
Show the square feet. Display the intermediate area alongside the bigha figure, plus hectares and square metres. It lets users cross-check against their own documents.
Mind sub-units. Prices are often quoted per katha, biswa, guntha or marla, and these vary too. A katha is about 720 sq ft in West Bengal but 2,880 sq ft in Assam. Model them the same way: region, variant, square feet.
Version the table. These are customary figures, so record the source and the date you last checked them. When a user reports a local difference, you can update data without touching logic.
Round late. Keep full precision through the calculation and round only on display, so a value converted back and forth returns what was entered.
Checking your numbers
For reference data, I compare against Acre to Bigha, a free converter covering 13 states with pucca, kaccha and regional variants listed separately. Its bigha to acre by state page is a convenient source for building and testing a lookup table like the one above.
And remember to add a clear note in your UI: for registration, loans or disputes, only the area in the official land record counts.
Top comments (0)