| Samsung Galaxy M40 | Samsung Galaxy M31 | |
| Specifications | ||
| Brand | Samsung | Samsung | 
| Model | - | - | 
| Release Date | June 2019 | March 2020 | 
| Operating System | One UI (Android 9.0) | One UI (Android 10) | 
| Dimensions | ||
| Size | 155.3 x 73.9 x 7.9 mm 6.11 x 2.91 x 0.31 in  | 
                    
                    159.2 x 75.1 x 8.9 mm 6.27 x 2.96 x 0.35 in  | 
                    
                
| Weight | 168 g 5.93 oz  | 
                    
                    191 g 6.74 oz  | 
                    
                
| Screen | ||
| Size | 6.3 inches | 6.4 inches | 
| Resolution | 1,080 x 2,340 pixels | 1,080 x 2,340 pixels | 
| PPI | 409 | 403 | 
| Features | - | OLED | 
| Cameras | ||
| Rear | Triple camera 32 MP f/1.7 Wide 8 MP f/2.2 Ultra Wide 5 MP f/2.2 Depth  | 
                    
                    Quad camera 64 MP f/1.8 Wide 8 MP f/2.2 Ultra Wide 5 MP f/2.4 Macro 5 MP f/2.4 Depth  | 
                    
                
| Front | 16 MP f/2.0 Wide | 32 MP f/2.0 Wide | 
| Storage | ||
| Memory | 4 GB 6 GB  | 
                    
                    6 GB 8 GB  | 
                    
                
| Fixed | 64 GB 128 GB  | 
                    
                    64 GB 128 GB  | 
                    
                
| Removable | microSDXC | microSDXC | 
| Processor | ||
| Chip | Qualcomm Snapdragon 675 SM6150 Octa-core processor 11 nm  | 
                    
                    Samsung Exynos 9611 Octa-core processor 10 nm  | 
                    
                
| CPU | 2x 2.00 GHz Kryo 460 Gold 6x 1.70 GHz Kryo 460 Silver  | 
                    
                    4x 2.30 GHz Cortex-A73 4x 1.70 GHz Cortex-A53  | 
                    
                
| GPU | Adreno 612 | Mali-G72 MP3 | 
| Battery | ||
| Capacity | 3,500 mAh | 6,000 mAh | 
| Features | Fast charging 15W | Fast charging 15W | 
| Removable | ||
| Connectivity | ||
| 5G | ||
| NFC | ||
| 3.5 mm Audio Jack | ||
| Micro USB | ||
| USB Type-C | ||
| Lightning | ||