# Megabit to Gigabyte - *311 Mbit* to GB Conversion

Copy Link & Share
### Excel Formula to convert from Mbit to GB

Apply the formula as shown below to convert from 311 Megabit to Gigabyte.

A | B | C | |
---|---|---|---|

1 | Megabit (Mbit) | Gigabyte (GB) | |

2 | 311 | =A2 * 0.000125 | |

3 |

Download - Excel Template for Megabit to Gigabyte Conversion

If you want to perform bulk conversion locally in your system, then download and make use of above Excel template.

### Python Code for Mbit to GB Conversion

You can use below code to convert any value in Megabit to Gigabyte in Python.

megabit = int(input("Enter Megabit: "))

gigabyte = megabit / (8*1000)

print("{} Megabit = {} Gigabyte".format(megabit,gigabyte))

gigabyte = megabit / (8*1000)

print("{} Megabit = {} Gigabyte".format(megabit,gigabyte))

The first line of code will prompt the user to enter the Megabit as an input. The value of Gigabyte is calculated on the next line, and the code in third line will display the result.