diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
index 778e3de403..6bc193ba2f 100644
--- a/src/wp-admin/includes/dashboard.php
+++ b/src/wp-admin/includes/dashboard.php
@@ -1661,6 +1661,10 @@ function wp_dashboard_quota() {
 	$quota = get_space_allowed();
 	$used  = get_space_used();
 
+	if ( $quota <= 0 ) {
+		return;
+	}
+
 	if ( $used > $quota ) {
 		$percentused = '100';
 	} else {
diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php
index be87d05aea..2735078a02 100644
--- a/src/wp-admin/includes/ms.php
+++ b/src/wp-admin/includes/ms.php
@@ -256,7 +256,7 @@ function display_space_usage() {
 	$space_allowed = get_space_allowed();
 	$space_used    = get_space_used();
 
-	$percent_used = ( $space_used / $space_allowed ) * 100;
+	$percent_used = $space_allowed > 0 ? ( $space_used / $space_allowed ) * 100 : 0;
 
 	$space = size_format( $space_allowed * MB_IN_BYTES );
 	?>
