🛠️ToolsShed

Convertidor de glucemia

Convierte glucosa en sangre entre mg/dL y mmol/L con referencia de valores normales.

Reference ranges
Statusmg/dLmmol/L
Fasting2h post-mealFasting2h post-meal
Normal70–99< 1403.9–5.5< 7.8
Pre-diabetes100–125140–1995.6–6.97.8–11.0
Diabetes≥ 126≥ 200≥ 7.0≥ 11.1

For reference only. Consult a healthcare professional for medical advice.

Los niveles de glucosa en sangre se miden en dos unidades diferentes según el país: mg/dL (miligramos por decilitro), utilizado en Estados Unidos y algunos otros países, y mmol/L (milimoles por litro), utilizado en Europa, Canadá, Australia y la mayoría del mundo. La conversión entre estas unidades es fundamental al leer literatura médica internacional o usar un glucómetro de otro país.

Para convertir mg/dL a mmol/L, divide entre 18,018. Para convertir mmol/L a mg/dL, multiplica por 18,018. Por ejemplo, una glucosa en ayunas de 100 mg/dL equivale aproximadamente a 5,6 mmol/L. Esta herramienta realiza la conversión al instante en ambas direcciones y muestra una tabla de referencia con los umbrales clínicos más importantes.

La glucosa en ayunas normal suele estar por debajo de 100 mg/dL (5,6 mmol/L). Entre 100 y 125 mg/dL (5,6–6,9 mmol/L) indica prediabetes, y un diagnóstico de diabetes generalmente se establece con 126 mg/dL (7,0 mmol/L) o más en dos ocasiones separadas.

Preguntas Frecuentes

Implementación de Código

# Blood glucose unit conversion
# Molecular weight of glucose = 180.182 g/mol
# Factor = 18.0182

FACTOR = 18.0182

def mgdl_to_mmoll(mgdl: float) -> float:
    """Convert blood glucose from mg/dL to mmol/L."""
    return mgdl / FACTOR

def mmoll_to_mgdl(mmoll: float) -> float:
    """Convert blood glucose from mmol/L to mg/dL."""
    return mmoll * FACTOR

def classify_fasting(mgdl: float) -> str:
    """Classify fasting blood glucose level (ADA guidelines)."""
    if mgdl < 70:
        return "Low (Hypoglycaemia)"
    elif mgdl < 100:
        return "Normal"
    elif mgdl < 126:
        return "Pre-diabetes"
    else:
        return "Diabetes range"

# Example conversions
values_mgdl = [54, 70, 90, 100, 126, 180, 250]
print(f"{'mg/dL':>8}  {'mmol/L':>8}  {'Category'}")
print("-" * 40)
for v in values_mgdl:
    mmol = mgdl_to_mmoll(v)
    category = classify_fasting(v)
    print(f"{v:>8}  {mmol:>8.1f}  {category}")

# Reverse conversion
print("\nmmol/L → mg/dL:")
for v in [3.9, 5.5, 7.0, 10.0]:
    mgdl = mmoll_to_mgdl(v)
    print(f"{v} mmol/L = {mgdl:.1f} mg/dL")

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.