Huawei P40 vs Samsung Galaxy A31

Compare recorded specifications, size and practical differences.

+ Add a third phone

Key differences

Calculated from recorded specifications using minimum difference thresholds. These are differences, not an overall ranking. For three phones, numeric highlights compare the two extremes.

  • Weight

    P40: 10 g lighter

    P40:
    175 g
    Galaxy A31:
    185 g
  • Width

    P40: 2 mm narrower

    P40:
    71.1 mm
    Galaxy A31:
    73.1 mm
  • Screen diagonal

    P40: 0.3 in smaller diagonal

    P40:
    6.1 in
    Galaxy A31:
    6.4 in
  • Rear camera layout

    P40:
    Triple
    Galaxy A31:
    Quad
  • Height

    P40: 10.4 mm shorter

    P40:
    148.9 mm
    Galaxy A31:
    159.3 mm

Physical size

Relative size, not calibrated actual size. Front and side outlines share one scale and a bottom baseline. Generic outlines use recorded body dimensions, excluding camera bumps.

  1. 1. P40

    Height:
    148.9 mm
    Width:
    71.1 mm
    Depth:
    8.5 mm
  2. 2. Galaxy A31

    Height:
    159.3 mm +10.4 mm versus P40
    Width:
    73.1 mm +2 mm versus P40
    Depth:
    8.6 mm

Weight

Bars start at zero and share a scale within this chart.

  1. 1. P40

    175 g

  2. 2. Galaxy A31

    185 g

    +10 g versus P40

Screen size

Approximate rectangular screens calculated from recorded diagonal and aspect ratio at one relative scale. Rounded corners and cutouts are not subtracted. These are not phone outlines or calibrated actual sizes.

  1. 1. P40

    Screen diagonal:
    6.1 in
    Aspect ratio (height:width):
    19.5:9
    Approximate rectangular screen area:
    91.3 cm²
  2. 2. Galaxy A31

    Screen diagonal:
    6.4 in
    Aspect ratio (height:width):
    20:9
    Approximate rectangular screen area:
    98.9 cm²

Galaxy A31 has approximately 8.3% more rectangular screen area than P40.

Memory variants

Each row compares the same storage capacity. Cells show recorded RAM alternatives, not combined maxima. Not recorded does not mean unavailable in every market.

Recorded RAM for P40, Galaxy A31, compared at the same storage capacity.
StorageP40Galaxy A31
64 GB Not recorded 4 GB RAM
128 GB Recorded for all phones 6 / 8 GB RAM Alternative RAM configurations 4 / 6 GB RAM Alternative RAM configurations
256 GB 8 GB RAM Not recorded

Practical features

Explicit Yes and No values are shown directly. Qualified or regional records retain their details. Unknown means the record is missing.

1. P40

NFC:
Yes
Headphone jack:
No
Memory card support:
See details NM (Nano Memory) · up to 256GB (uses shared SIM slot)

2. Galaxy A31

NFC:
See details Yes (market/region dependent)
Headphone jack:
Yes
Memory card support:
See details microSDXC (dedicated slot)

Battery capacity

Capacity is not battery life. No endurance test is implied.

Recorded battery capacity

Bars start at zero and share a scale within this chart.

  1. 1. P40

    3800 mAh

  2. 2. Galaxy A31

    5000 mAh

    +1200 mAh versus P40

Specifications

Open a section for more detail. On narrow screens, swipe sideways or use Left/Right arrow keys while the table is focused. Unknown means missing data, not No. Recorded zero values are shown as recorded.

1. P402. Galaxy A31

Everyday essentials
Everyday essentials — specifications for P40, Galaxy A31.
SpecificationP40Galaxy A31
Dimensions (HxWxD)
  • 148.9 Х 71.1 Х 8.5 mm
  • 159.3 Х 73.1 Х 8.6 mm
Weight
  • 175 g
  • 185 g
Technology
  • OLED
  • Super AMOLED
Screen size
  • 6.1" inch
  • 6.4" inch
Screen resolution
  • 1080 x 2340 px
  • 1080 x 2400 px
Internal memory Recorded storage / RAM variants. Entries are alternatives, not a combined maximum. Ambiguous formats stay as recorded.
  • 128GB 6GB RAM
  • 128GB 8GB RAM
  • 256GB 8GB RAM
  • 64GB 4GB RAM
  • 128GB 4GB RAM
  • 128GB 6GB RAM
Memory card support
  • NM (Nano Memory)
  • up to 256GB (uses shared SIM slot)
  • microSDXC (dedicated slot)
Battery Capacity is not battery life. No endurance test is implied.
  • 3800 mAh
  • Non-removable Li-Po
  • 5000 mAh
  • Non-removable Li-Po
Operating system OS
  • Android 10.0 (AOSP + HMS); EMUI 10.1
  • Android 10.0; One UI 2.0
Chipset
  • HiSilicon Kirin 990 5G (7 nm+)
Unknown
NFC
  • Yes
  • Yes (market/region dependent)
Headphone jack
  • No
  • Yes
Display
Display — specifications for P40, Galaxy A31.
SpecificationP40Galaxy A31
Touchscreen
  • capacitive touchscreen
  • capacitive touchscreen
Display colors
  • 16M
  • 16M
Screen area
  • 91.3 cm2
  • 98.9 cm2
Screen format
  • 19.5:9 (height:width)
  • 20:9 (height:width)
Screen to body ratio
  • 86.3%
  • 84.9%
PPI /points per inch/
  • 422 PPI
  • 411 PPI
Screen protection
  • Corning Gorilla Glass 6
Unknown
Camera and Video
Camera and Video — specifications for P40, Galaxy A31.
SpecificationP40Galaxy A31
Rear camera, main
  • 50 MP
  • Triple
  • 48 MP
  • Quad
Camera specs
  • 50 MP
  • f/1.9
  • 23mm (wide)
  • 1/1.28''
  • 2.44µm
  • omnidirectional PDAF
  • OIS -8 MP
  • f/2.4
  • 80mm (telephoto)
  • PDAF
  • OIS
  • 3x optical zoom -16 MP
  • f/2.2
  • 17mm (ultrawide)
  • AF
  • 48 MP
  • f/2.0
  • 26mm (wide)
  • 1/2.0"
  • 0.8µm
  • PDAF -8 MP
  • f/2.2
  • 13mm (ultrawide)
  • 1/4.0"
  • 1.12µm -5 MP
  • f/2.4
  • (macro) -5 MP
  • (depth)
Functions
  • HDR
  • LED flash
  • panorama
  • HDR
Video
  • 2160p@30/60fps
  • 1080p@30/60fps
  • 1080p@30fps
Front camera, selfie
  • 32 MP
  • Dual
  • 20 MP
  • Single
Specifications
  • 32 MP
  • f/2.0
  • 26mm (wide)
  • 1/2.8"
  • 0.8µm IR TOF 3D
  • (biometrics sensor only)
  • 20 MP
  • f/2.2
  • (wide)
Performance

Scores marked * are historical catalogue entries. Test conditions are unspecified; no new testing is implied.

Performance — specifications for P40, Galaxy A31.
SpecificationP40Galaxy A31
Processor CPU
  • Octa-core (2x2.86 GHz Cortex-A76 & 2x2.36 GHz Cortex-A76 & 4x1.95 GHz Cortex-A55)
  • Octa-core (2x2.0 GHz & 6x1.7 GHz)
Graphics processor GPU
  • Mali-G76 MP16
Unknown
Antutu 8 score *
  • 496357
Unknown
GeekBench 5 Single Core *
  • 774
Unknown
GeekBench 5 Multi-Core *
  • 3181
Unknown
General specs
General specs — specifications for P40, Galaxy A31.
SpecificationP40Galaxy A31
Release date
  • 2020
  • March 26
  • 2020
  • March 24
Colors
  • Silver Frost
  • Blush Gold
  • Deep Sea Blue
  • Ice White
  • Black
  • Prism Crush Black
  • Prism Crush Blue
  • Prism Crush Red
  • Prism Crush White
Historical recorded price Legacy catalogue value; date unknown. Not a current offer.
  • 800 EUR
Unknown
Body build
  • Glass front
  • glass back
  • aluminum frame
Unknown
Communication and Connectivity
Communication and Connectivity — specifications for P40, Galaxy A31.
SpecificationP40Galaxy A31
SIM card
  • Single SIM (Nano-SIM/eSIM)Hybrid Dual SIM (Nano-SIM
  • dual stand-by)
  • Single SIM (Nano-SIM)Dual SIM (Nano-SIM
  • dual stand-by)
Network
  • Show all network frequencies: -2G - GSM 850 / 900 / 1800 / 1900 - SIM 1 & SIM 2 -3G - HSDPA 800 / 850 / 900 / 1700(AWS) / 1900 / 2100 -4G - LTE -5G - 5G SA/NSA
  • Show all network frequencies: -2G - GSM 850 / 900 / 1800 / 1900 - SIM 1 & SIM 2 (dual-SIM model only) -3G - HSDPA 850 / 900 / 1900 / 2100 -4G - LTE (unspecified)
Speed
  • HSPA 42.2/5.76 Mbps
  • LTE-A
  • 5G
  • HSPA
  • LTE-A
GPRS
  • Yes
  • Yes
Edge
  • Yes
  • Yes
Wi-Fi
  • Wi-Fi 802.11 a/b/g/n/ac/ax
  • dual-band
  • Wi-Fi Direct
  • hotspot
  • Wi-Fi 802.11 a/b/g/n/ac
  • dual-band
  • Wi-Fi Direct
  • hotspot
GPS
  • Yes
  • with dual-band A-GPS
  • GLONASS
  • BDS
  • GALILEO
  • QZSS
  • NavIC
  • Yes
  • with A-GPS
  • GLONASS
  • GALILEO
  • BDS
USB
  • 3.1
  • Type-C 1.0 reversible connector
  • USB On-The-Go
  • 2.0
  • Type-C 1.0 reversible connector
  • USB On-The-Go
Bluetooth
  • 5.1
  • A2DP
  • LE
  • 5.0
  • A2DP
  • LE
Harmful irradiation Unknown
  • SAR EU - 0.49 W/kg (head) 1.68 W/kg (body)
Music and Audio
Music and Audio — specifications for P40, Galaxy A31.
SpecificationP40Galaxy A31
Radio
  • No
Unknown
Others
  • DCI-P3 -HDR10 -90Hz
  • 32-bit/384kHz audio
Unknown
Other features
Other features — specifications for P40, Galaxy A31.
SpecificationP40Galaxy A31
Dop
  • Sensors Infrared face recognition
  • fingerprint (under display
  • optical)
  • accelerometer
  • gyro
  • proximity
  • compass
  • color spectrum
  • Infrared port - Fast charging 22.5W - IP53 dust and splash protection
  • Sensors Fingerprint (under display
  • optical)
  • accelerometer
  • gyro
  • proximity
  • compass - Fast charging 15W